Installation FAQ

I see this error when making Android build - "Failed to install the following Android SDK packages as some licences have not been accepted.". How to resolve this?

This happens because of not accepting licenses when installing the sdk. Let me get you the steps to accept the license. On Windows
1
C:\Users\xxx\AppData\Local\Android\Sdk\tools\bin\sdkmanager --licenses
Copied!
or
1
PATH-TO-UNITY-ANDROID-SDK\tools\bin\sdkmanager --licenses
Copied!
On Mac
1
cd /Users/YOUR_MAC_USER/Library/Android/sdk/tools/bin ./sdkmanager --licenses
Copied!
or
1
/Applications/Unity/Hub/Editor/UNITY_VERSION/PlaybackEngines/AndroidPlayer/SDK/tools/bin/sdkmanager --licenses
Copied!
Press 'y' to accept the licenses.
Last modified 10mo ago