Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Unknown host 'jcenter.bintray.com'.

Tags:

android

Error:Unknown host 'This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle

like image 244
vithika Avatar asked Jan 09 '17 18:01

vithika


People also ask

What is Maven JCenter?

JCenter is a central artifact repository, like Maven Central. Software projects use JCenter to distribute their software to other people. JCenter also serves as a mirror for Maven Central, so any dependencies available on Maven Central are also available on JCenter (but not vice versa).

What can I use instead of JCenter?

I guess the current recommendation is, to use mavenCentral().

What is the use of JCenter?

JCenter is a central repository on JFrog Bintray platform for finding and sharing popular JVM language packages in Maven format, used by Maven, Gradle, Ivy, SBT, and others. JCenter is the most comprehensive source for OSS Maven packages, hosting over 340,000 public packages.

What is JCenter Bintray?

jCenter is the public repository hosted at bintray that is free to use for open source library publishers. It is the largest repository in the world for Java and Android OSS libraries, packages and components. All the content in JCenter is served over a CDN, with a secure HTTPS connection.


2 Answers

I got the same error and solved the problem using following instruction.

Go to your project level gradle build script add maven { url"https://jitpack.io"} into allprojects.

allprojects {
    repositories {
        google()
        jcenter()
        maven {url"https://jitpack.io"}


    }
}
like image 124
Swapon Avatar answered Sep 28 '22 06:09

Swapon


This worked for me.

allprojects {
repositories {
    google()
    jcenter()
    maven {url"https://jitpack.io"}


}

}

like image 25
Eduardo Ceolin Avatar answered Sep 28 '22 07:09

Eduardo Ceolin