Could not find com.android.tools.build:aapt2:3.2.1-4818971

gradle-3321

(Joe W) #1

I’m updating an Android Studio app to use Gradle 3.2.1:
dependencies {
classpath ‘com.android.tools.build:gradle:3.2.1’

and I get this error:
Could not find com.android.tools.build:aapt2:3.2.1-4818971.

Do you know how to resolve this? Thx.


(Joe W) #2

Added missing repository to allprojects{ repositories{ to match buildscript{ repositories {

buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath ‘com.android.tools.build:gradle:3.2.1’

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
google()
}