Fix Android build error.
The latest version of Android Studio fails with:
Could not find com.android.tools.build:aapt2
To use AAPT2, we must now have a dependency on the `google()` repo
in both places in the root build.gradle file, as per:
https://developer.android.com/studio/releases/#aapt2_gmaven
This commit is contained in:
parent
49ee3469b6
commit
c00ede2978
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ buildscript {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
classpath 'com.android.tools.build:gradle:3.3.0'
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
|
|
@ -14,6 +14,7 @@ buildscript {
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue