Could not find com.android.tools.build:aapt2:3.2.0-4818971. - 에러 메시지, 해결방법

CODEDRAGON Development/Android

반응형


 

 

에러 메시지

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




 

 

 

 

 

 

해결방법

현재 프로젝트에 Google repository 추가해주면 해결됩니다.

 

메뉴: [File] >> [Project Structure…]



 



 

[Project] 클릭


 

Android Plugin Repository Default Library Repository google() 추가해 줍니다.

 

Android Plugin Repository

jcenter, google()

Default Library Repository

jcenter, google()



 

 

 

 

 

or

bild.gradle(Project: projectname) 에서 google() 통해  Google repository 추가해 줍니다.

 

buildscript {

    repositories {

        jcenter()

        google()

    }

    dependencies {

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

 

        // NOTE: Do not place your application dependencies here; they belong

        // in the individual module build.gradle files

    }

}

 

allprojects {

    repositories {

        jcenter()

        google()

    }

}

 

 

 




반응형