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
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).
I guess the current recommendation is, to use mavenCentral().
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.
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.
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"}
}
}
This worked for me.
allprojects {
repositories {
google()
jcenter()
maven {url"https://jitpack.io"}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With