Android Studio 3.2 - Could not find com.android.tools.build:aapt2:3.2.0-4818971

前端 未结 6 531
一向
一向 2020-12-05 12:50

I was following a tutorial to develop icon pack for android and when I imported the project I got several errors and it was solved here - Gradle Version 4.6 - Absolute path

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 13:22

    Most likely you do not have the Google repository in your project's build.gradle file. Add google() in BOTH locations as shown below:

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

提交回复
热议问题