When to use it. Your agent changed Kotlin or Gradle files and you want to know they compile, without an Android SDK on your machine
Run it
box build --platform android running Gradle and saving the APK
assembleDebug and saves the debug APK. Here on android/compose-samples JetLagged (Apache 2.0)
Job
bj__ad3mDX3BXh16XQO on a production Android machine: 60s billed, $0.02
What you get
.box/out/<job>/app-debug.apk, the debug APK, andbuild.log, the whole Gradle log- The Gradle cache stays between jobs of the same project, so the next build is incremental (the run above: 37 tasks up to date)
- A failed build exits 1 and prints Gradle’s errors;
box whyreads the log for the cause
box build --device-build is iOS only and exits 2 with --platform android