Android Build RuntimeException SLAVE_AAPT_TIMEOUT

android

#1

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
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:120)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)


#2

Hi @derekentringer,

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


#3

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.


#4

Upgrading Gradle to v2.2.3 fixed this issue.


#5

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