본문 바로가기

TroubleShooting/Unity

Failed to install the following Android SDK packages as some licenses have not been accepted (Unity 빌드)

728x90

Unity 2019 에서 앱 빌드를 하는데, 아래와 같은 오류가 발생했다.

"Failed to install the following Android SDK packages as some licenses have not been accepted.
 build-tools;30.0.3 Android SDK build-Tools 30.0.3
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:/Applications/Unity/Hub/Editor/2019.4.40f1/PlaybackEngines/AndroidPlayer/SDK"

SDK 라이선스와 관련된 오류인데, 메시지에 나와있는 설명은 SDK 매니저를 통해서 라이선스를 설치하거나 링크에 있는 설명을 참고해서 다른곳에 이미 설치한 라이선스 파일을 복사를 하라는 것이다.

 

먼저 라이선스 파일을 설치하는 방법으로는 Android Studio 에서  "Apperance & Behavior" - "System Settings" - "Android SDK" - "SDK Tools" "Google Play licensing Libray" 를 클릭하고 설치하면 된다.

문제를 해결하기 위해 설치된 라이선스 파일을 Unity 디렉토리에 복사를 한다.

Android SDK 에 있는 licenses 디렉토리를 Unity (2019.4.40f1) SDK 디렉토리에 복사하고 나서 다시 빌드를 하면 오류 메시지는 사라진다.

'TroubleShooting > Unity' 카테고리의 다른 글

GooglePlay 마켓 업로드 오류 on Unity  (0) 2023.07.07