Skip to main content
XenoCI Box builds, tests and screenshots Android apps on a Linux Android emulator with the same commands as iOS. Add --platform android, or let box find settings.gradle or gradlew in your project
1

Install and sign in

The same CLI and the same account as iOS. If box is already set up, skip to the next step
Every way to install and sign in is on Install and sign in
2

Build

From the folder with settings.gradle or gradlew. Here it is the public sample android/compose-samples JetLagged (Apache 2.0)

Android: box build, box test and box screenshot, ending on the screen the job saved

3

See the app

The JetLagged sample on an Android emulator: the Sleep chart for the week, as box saved it
The picture box saved, made smaller for this page

What to look at next

Test

Run your JVM unit tests and read what failed

Run and tap

Keep the app open and drive it with box ui

Exec

Any Gradle task or shell command on the machine

Pricing

What an Android minute costs

How it differs from iOS

  • Every job command takes --platform ios or --platform android, and so does every MCP job tool (platform)
  • Without it, box looks at the project folder: an Xcode project, project.yml, Package.swift or an ios/ folder means iOS; settings.gradle, gradlew or an android/ folder means Android
  • When both are there (Flutter, React Native, Expo), box picks neither and exits 2 asking for --platform, so no job runs on the platform you did not mean
  • To fix the choice for a project, put platform = "android" (or "ios") in .box.toml. --platform still wins
  • Android has one size: 4 vCPU / 16 GB. It runs on a Linux Android emulator, and the emulator boot time is not billed
  • --xcode is for iOS only; with --platform android it exits 2
  • box debug and box build --device-build are iOS only and exit 2 on Android. box test runs every unit test (Gradle testDebugUnitTest), so --only-testing is not used
  • The debug APK is saved as .box/out/<job>/app-debug.apk. The Gradle cache stays between jobs of the same project, so the next build is incremental
Android costs $0.02 per minute on the one Android size (4 vCPU / 16 GB), from the same US dollar balance as the Mac. The emulator boot time is not billed. The current rate is at xenoci.com/api/v1/pricing, and every job prints its rate when it is submitted