Android Studio 3.2 – Could not find com.android.tools.build:aapt2:3.2.0-4818971

Most likely you do not have the Google repository in your project’s build.gradle file. Add google() in BOTH locations as shown below:

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

Leave a Comment