Credit goes to : StackOverflow
I had the issue when I put
Here is my final build.gradle
jcenter() before google() in project level build.gradle. When I changed the order and put google() before jcenter() in build.gradle the problem disappearedHere is my final build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
-
It's working for me. Thanks. – akhil batlawala Jul 24 at 7:15
-
3This makes no sense at all. But works :D – joao2fast4u Aug 3 at 16:25