# Gradle with a too-new default JDK: cryptic `What went wrong: 27` (or `25.0.3`) Symptom: `./gradlew ...` fails in ~2 s with `* What went wrong:` followed only by a number. The number is the JDK version, not an exit code. Cause: the default `java` is newer than the project's Gradle wrapper supports (e.g. a Homebrew OpenJDK 27 or Android Studio's bundled JBR 25 with a Gradle 8.x wrapper). Fix: pass JDK 21: ``` ./gradlew testDebugUnitTest --console=plain \ -Dorg.gradle.java.home="" ``` Find `` with `/usr/libexec/java_home -v 21` (or set `JAVA_HOME` to it for the session). Mention this in every dispatch brief that builds or tests. Other notes: - `testDebugUnitTest UP-TO-DATE` means a previous run succeeded; use `--rerun-tasks` for fresh counts, then sum `app/build/test-results/testDebugUnitTest/*.xml` (`tests="N" failures="0" errors="0"`). - On Apple Silicon the emulator is arm64: install the arm64 APK. - Changing `applicationId` makes Android treat the new APK as a different app (old one must be uninstalled; app data is not carried over). - Other feature worktrees keep the old package name, so merges need a package move first.