Fix Android root build commands
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user