Android buidl failed: have not accepted the license agreements

One way this can happen is if your package.xml in Engine/Source/ThirdParty/Android is damaged (for example ends up with PC line endings rather than UNIX line endings). If you fix that file you can then delete the android-sdk-license file and then re-accept the eula’s in project settings.

After upgrading the engine version to 4.21, I had the same issue as mentioned above. I have disabled that option as proposed in the answer, and it worked for me. Thanks for the solution.

Installing Android Studio worked for me. The other methods mentioned here did not work for me. Peculiar solution, but I take it!

this was also the only resolution that worked for me, thanks for the tip!

Wow! It solves the problem clearly. Thanks a lot!

I found the answer here: https://answers.unrealengine.com/questions/873521/error-while-packaging-project-for-android-platform.html

www Thanks!