반응형

안드로이드 라이센스 오류


안드로이드 스튜디오를 업데이트 한 후 아래와 같은 빌드 오류가 발생했다.

 

 

[Warning]
The specified Android SDK Build Tools version (30.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.

Android SDK Build Tools 30.0.2 will be used.

To suppress this warning, remove "buildToolsVersion '30.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

 

[Fail]
License for package Android SDK Build-Tools 30.0.2 not accepted.

 

[Warning]
Failed to install the following Android SDK packages as some licences have not been accepted.

   build-tools;30.0.2 Android SDK Build-Tools 30.0.2

To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.

Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

 

대충 읽어보니 안드로이드 SDK와 관련된 라이센스 동의가 필요해보였고, 안드로이드 라이센스 라이브러리 설치로 해결했다.

 

메뉴의 File -> Settings

 

 

Settings의 Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools에서 Google Play Licensing Library를 설치