Skip to content

CICD-471 · Android Gradle build ​

Encyclopedia · Mobile, desktop and binary distribution · All snippets

Previous · CICD-470 · Next · CICD-472

1. Where it fits ​

  • Placement Android CI run step.
  • Prerequisites approved toolchains and isolated build/signing runner when credentials are required.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
./gradlew --no-daemon :app:assembleDebug
test -s app/build/outputs/apk/debug/app-debug.apk

3. How it works ​

The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.

4. Verify the result ​

Use the repository Gradle wrapper and provision the compatible JDK and Android SDK.

Validation syntax-validated (Bash parse). Status definitions.