Failed to install the following Android SDK packages as some licences have not been accepted - 안드로이드 스튜디오 오류

2021. 10. 9. 02:51

안드로이드 스튜디오 오류

안드로이드 스튜디오 설치 후 앱을 처음 핸드폰에서 실행시키면 Failed to install the following Android SDK packages as some licences have not been accepted.라고 시작하는 에러나 난다

 

 

Failed to install the following Android SDK packages as some licences have not been accepted


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

Using Android SDK: C:\Users\xxxxxx\AppData\Local\Android\Sdk

 

이 에러는 안드로이드 SDK 라이선스 문제로 아래와 같이 조치하면 해결된다. 

 

 

안드로이드 스튜디오 SDK 라이선스 문제 해결방법

 

안드로이드 스튜디오 Library 설치

File >Settings >Appearance & Behavior >System Settings >Android SDK 에서 SDK Tools탭을 클릭하면 목록 중에 Google Play Licensing Library 항목이 있다. 이것을 체크하고 OK버튼을 클릭한다.

 

 

components 설치 확인

설치할 components 를 확인하고 OK버튼을 클릭한다.

 

라이선스 약관 동의

라이선스 동의함을 위해 Accept 라디오 버튼을 체크하고 Next 버튼을 클릭한다. 

 

SDK Components 설치 완료

SDK 라이선스 Components가 설치되면 Finish버튼을 클릭해 작업을 마무리한다.

이후 안드로이드 스튜디오에서 에러가 사라지며 앱 실행이 잘 될 것이다.