You can find an up to date version of this issue and fix on our DevCenter
If you'd get an error in your Android build like:
Could not find com.android.support:appcompat-v7:24.2.0.
You have not accepted the license agreements of the following SDK components:
it means that your Android build requires an Android package which is either not (yet) preinstalled (you can see which packages are preinstalled here, on GitHub - feel free to send us a Pull Request if you'd want to add a new preinstalled package!), or outdated.
We update the preinstalled Android packages on every weekend, so if the error is related to an outdated package, the workaround we describe here can be removed from your build after that weekend's update.
How to fix these errors?
It's quite simple, you just have to update or install the related Android package. You can do this with a Script step (can be the first step in the Workflow), just specify this as the content of the Script step to update the packages related to the errors above:
Happy Building! 🚀