android编译报错-Could not find com.android.tools.build:aapt2

Could not find com.android.tools.build:aapt2

解决办法:加入googl()

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

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

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

猜你喜欢

转载自blog.csdn.net/u010029439/article/details/88252898
今日推荐