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

作者: android 发布时间: 2019-01-12 浏览: 667 次 编辑

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


android studio 升级到了3.0 取消了apt 报了这个错

Could not find com.android.tools.build:aapt2:3.2.0-alpha14-4748712.

Searched in the following locations:

file:/D:/android_sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712.pom

file:/D:/android_sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712-windows.jar

file:/D:/android_sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712.pom

file:/D:/android_sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712-windows.jar

file:/D:/android_sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712.pom

file:/D:/android_sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712-windows.jar

https://jcenter.bintray.com/com/android/tools/buil...

https://jcenter.bintray.com/com/android/tools/buil...

https://jitpack.io/com/android/tools/build/aapt2/3...

https://jitpack.io/com/android/tools/build/aapt2/3...

在最上级的builde.gralde增加谷歌库 解决问题

allprojects {
    repositories {
        google()//新增的
        jcenter()
    }
}