From b37ade8f0ea92cdbdea33a00a7941c0aa846ef46 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 00:43:22 +0100 Subject: [PATCH] Fix Android root build commands --- android/AGENTS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/AGENTS.md b/android/AGENTS.md index 469362b9..fddf5979 100644 --- a/android/AGENTS.md +++ b/android/AGENTS.md @@ -8,11 +8,12 @@ general are built, tested and reviewed belongs to the pipeline that started you. This checkout has no `gradlew`; the toolchain uses the installed distribution: ```sh +# Run these commands from the repository root. export JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home' export ANDROID_HOME="$HOME/Library/Android/sdk" GRADLE=/Users/alan/.gradle/wrapper/dists/gradle-8.11.1-bin/bpt9gzteqjrbo1mjrsomdt32c/gradle-8.11.1/bin/gradle -"$GRADLE" --offline --no-daemon :app:assembleDebug # ~7 s incremental -"$GRADLE" --offline --no-daemon :app:testDebugUnitTest # 400+ tests, ~8-13 s +"$GRADLE" -p android --offline --no-daemon :app:assembleDebug # ~7 s incremental +"$GRADLE" -p android --offline --no-daemon :app:testDebugUnitTest # 400+ tests, ~8-13 s ``` Always `--no-daemon`: a leftover daemon is what makes these look slow. Add **one** test class at a