Android SDK License not accepted

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 the Project Settings about the SDK License

    Accept SDK License does not provide any feedback nor system changes.

Solution

:loudspeaker: 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

  1. Find your Android SDK Home path
    – This can be found in numerous ways, the easiest one is by going on Android StudioSDK Manager in the Android SDK Location path option (this usually ends with SDK) :
  2. In this folder, copy the folders build-tools AND licenses to your cmdline-tools path
    2.1 :warning:This can be different depending on your Unreal install: for instance, UE_5.4 uses C:\Users\****\AppData\Local\Android\Sdk\cmdline-tools\latest\bin while UE_5.2 uses cmdline-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 :)

3 Likes

YES Thank you!! This is the only thing that solved it for me after three months of struggling with the problem!