Android SDK License not accepted
We’ve been stuck on an error that blocked our Unreal projects from building in certain machines, with no useful tutorial on how to fix them
Recently, we found a way to solve it, it is a bit of working-a-round
but we managed to fix it, so we’ll be providing as much info as we can to help other users :)
Symptons
- Affected Releases:
– Unreal 5.2 AND Unreal 5.4 were tested in this issue - OS:
– Windows only, we had MacOS environments working withouth hassle - Plugins:
– No specific plugin were causing this issue - In engine effect:
– Apart from not beign able to package AndroidBuilds, we were also having this error on theProject Settings
about the SDK License
Accept SDK License
does not provide any feedback nor system changes.
Solution
This guide assumes you have already finished the Android Setup Guide provided by your Unreal Version, so please be sure to double check the guides
Please refer to it on the official docs with your engine version
- Find your
Android SDK Home
path
– This can be found in numerous ways, the easiest one is by going onAndroid Studio
→SDK Manager
in theAndroid SDK Location
path option (this usually ends withSDK
) :
- In this folder, copy the folders
build-tools
ANDlicenses
to yourcmdline-tools
path
2.1 This can be different depending on your Unreal install: for instance, UE_5.4 usesC:\Users\****\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
while UE_5.2 usescmdline-tools\8.0\bin
And voyalla
this solved our problem with Unreal Licenses. I really hope this can help further users to get into the egnine as Unreal has been such a delightful engine to use.
Happy game deveing :)