Build errors after Android Studio 3.2.1 upgrade

前端 未结 9 1357
我在风中等你
我在风中等你 2020-11-29 00:24

I am building a sample project from Udacity. This was working fine till now, but after upgrading to Android Studio 3.2.1, I am facing the build error below.

Gradle v

9条回答
  •  醉梦人生
    2020-11-29 00:59

    The project gradle version is pretty old:

    classpath 'com.android.tools.build:gradle:2.2.3'
    

    And you are using Android Studio v3.2.1 so, update the gradle:

    classpath 'com.android.tools.build:gradle:3.2.0' // or 3.2.1 maybe
    

    Also, as you can see, it was looking for some packages in :

    file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom
    

    Which means you probably forgot to add google() as the top level repository. Just add google()

    to your repositories in your root build.gradle.

提交回复
热议问题