License for Android build tools not accepted?

Hey folks!

The issue seems to be somewhat misleading, it was occurring for me as well with Unreal Engine 4.21.2. The CodeWorksforAndroid-1R7u1 included with said Engine installs
Android SDK Build-Tools 26.0.1 by default. This leads to you receiving the error message “License for package Android SDK Build-Tools 26.0.2 not accepted.” as it’s likely not
even installed.

To install the 26.0.2 simply navigate to android-sdk-windows ools and execute the android.bat to access the list of tools. Under tools you should find the version 26.0.2, install
it and you’re done!