Cannot Upgrade To Latest Support Library Android Studio
I have installed the latest version of Android Support Repository (47.0.0), but I can't build my project because of the following error. ERROR Here is my build.gardle code compile
Solution 1:
Check your build.gradle. You should have google repo:
allprojects {
repositories {
google()
jcenter()
}
}
Solution 2:
It was a proxy issue after all.I had to replace the default lines in gradle.properties with this line:
org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=9090
It took me a week to find it out.thanks to those who answered or commented and tried to help.
Solution 3:
From the error none of the libraries can be resolved. So I think the problem is with your maven not being able to get access to the repositories. This can be because of bad internet or not being configured correctly.
I would check the maven repository configurations:
allprojects {
repositories {
jcenter()
mavenLocal()
or
try this:
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
Post a Comment for "Cannot Upgrade To Latest Support Library Android Studio"