You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager
I was on build tool 23.0.3. I have since updated to 25.
This should solve the issues you’re having:
if [ ! -d “/usr/local/android-sdk-linux/platforms/android-25” ]; then echo y | android update sdk --no-ui --all --filter “android-25”; echo y | android update sdk -u -a -t 3; fi