Typing diary

Unity Android 빌드 시 Android SDK 라이선스 미동의 에러 본문

Unity

Unity Android 빌드 시 Android SDK 라이선스 미동의 에러

Jcon 2025. 11. 15. 15:23
에러 로그 
stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':unityLibrary:hive.androidlib:compileReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;35.0.0 Android SDK Build-Tools 35
     platforms;android-30 Android SDK Platform 30
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  All licenses can be accepted using the sdkmanager command line tool:
  sdkmanager --licenses
  Or, to transfer the license agreements from one workstation to another, see https://developer.android.com/studio/intro/update.html#download-with-gradle

 

빌드 시 필요한 SDK버전을 Unity에서 자동으로 설치를 시도했지만, 라이선스 문제로 SDK 설치를 실패한 경우 

 

해결법 

Android 스튜디오 설치 후, "C:\Users\[UserName]\AppData\Local\Android\Sdk\licenses" 폴더를 "C:\Program Files\Unity\Hub\Editor\[UnityVersion]\Editor\Data\PlaybackEngines\AndroidPlayer\SDK" 폴더에 복사한다. 

 

 

'Unity' 카테고리의 다른 글

SRP Batcher  (0) 2025.06.18
Unity Serializable Dictionary (스크립트 직렬화)  (0) 2024.09.10
Unity Addressables localhost로 Remote번들 테스트하기  (0) 2024.07.29