首页 网上学习正文

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

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

c79da004fe66a5d3aa2ae42062dd5302.jpg

Searched in the following locations:

    file:/D:/AndroidStudio/sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom

    file:/D:/AndroidStudio/sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar

    file:/D:/AndroidStudio/sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom

    file:/D:/AndroidStudio/sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar

    file:/D:/AndroidStudio/sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom

    file:/D:/AndroidStudio/sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar

    https://jcenter.bintray.com/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom

    https://jcenter.bintray.com/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar

Required by:

    project :app

 


解决方法很简单:


在项目的build.gradle文件中,新增一行google()即可解决


allprojects {

    repositories {

        jcenter()

        google()//新增这一行

    }

}

--------------------- 

作者:franksight 

来源:CSDN 

原文:https://blog.csdn.net/whj9073/article/details/83510407 

版权声明:本文为博主原创文章,转载请附上博文链接!


打赏

评论

Music