In order to see if the APK compiles, make the build fail when something like this occurs: https://travis-ci.org/fossasia/flappy-svg#L312 This can be done in a shell script with set -e at the beginning or checking of the commands and adding `exit ...`.