Could not find com.android.tools.build:aapt2:3.2.0-alpha14-4748712.
Posted brave-sailor
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not find com.android.tools.build:aapt2:3.2.0-alpha14-4748712.相关的知识,希望对你有一定的参考价值。
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/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712.pom
https://jcenter.bintray.com/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712-windows.jar
https://jitpack.io/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712.pom
https://jitpack.io/com/android/tools/build/aapt2/3.2.0-alpha14-4748712/aapt2-3.2.0-alpha14-4748712-windows.jar
在最上级的builde.gralde增加谷歌库 解决问题
allprojects {
repositories {
google()//新增的
jcenter()
}
}
以上是关于Could not find com.android.tools.build:aapt2:3.2.0-alpha14-4748712.的主要内容,如果未能解决你的问题,请参考以下文章
Maven - Could not find artifact
Spark: Could not find CoarseGrainedScheduler
Could not find acceptable representation
./gradlew build:Could not find tools.jar. 解决方法