Licences for Android build tools not accepted

Hm. That workaround didn’t work for me:

Warning: Failed to find package “build-tools
[===                                    ] 10% Computing updates...              
Exited with code 1

But this did:

   - run:
       name: Approve license for build tools
       command: (echo y; echo y; echo y; echo y; echo y; echo y) | $ANDROID_HOME/tools/bin/sdkmanager --licenses

hat tip this person:

2 Likes