Accept Android build tools licenses

Andres Sandoval
1 min readAug 6, 2023

When using the latest Gradle(alpha) versions we get the build error “Failed License not accepted for build tools”. The solution is to add command to accept the license. Below are code snippets to fix Github actions and Dockerfile.


Checking the license for package Android SDK Build-Tools 34-rc3 in /usr/local/lib/android/sdk/licenses

Warning: License for package Android…