Android Build RuntimeException SLAVE_AAPT_TIMEOUT

Android builds are generating an error that we have not seen before on Bitrise. Building locally in terminal/Android Studio work good, but, out Bitrise instance is throwing this error:

in thread “png-cruncher_14087” java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at /opt/android-sdk-linux/build-tools/23.0.3/aapt can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds

1 Like

Hi @derekentringer,

Did you try to set this environment variable? E.g. as an App Env Var?

Other things worth to try (searching for “Timed out while waiting for slave aapt process”):

You can do these (apt-get install ..) with e.g. a Script step.

Upgrading Gradle to v2.2.3 fixed this issue.

1 Like

Happy to hear that, and thanks for reporting! :wink: