On updating to android 3.0, it's showing the following error:
can't resolve com.android.tools.build:gradle:2.3+ dependency.
MavenCentral() already included in build.gradle file:
repositories {
mavenCentral()
}
For me the init.gradle file missing inside the path
C:\Users\Username\.gradle\
On adding init.gradle file to the above path, code build successfully.
init.gradle
allprojects {
buildscript.repositories {
jcenter({ url "http://jcenter.bintray.com" })
maven { url "http://10.252.250.53:8081/lm/content/groups/public/" }
}
buildscript.configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
jcenter({ url "http://jcenter.bintray.com" })
maven { url "http://10.252.250.53:8081/lm/content/groups/public/" }
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
Hopes this will help :)