The repository was recently restructured (PR #947 repo-restructure), moving the Android project from the repo root to clients/android/. Several path references in build files were updated in commit 6d7d339d, but remaining issues prevent successful compilation. The current branch is fix-android-compilation.
- 1a. Create
clients/android/local.propertieswithsdk.dir— already exists locally. - 1b. Copy
google-services.json.template→google-services.jsoninclients/android/app/(gitignored, local dev placeholder). - 1c. Fix
.envpath inclients/android/app/build.gradleline 16:../.env→../../.env. - 1d. Fix keystore paths in
clients/android/app/build.gradlelines 31, 37: replaced Windows backslash separators with forward slashes.
- 2a. Delete the root
android/directory (old build artifacts:.gradle/,.idea/,build/caches). Removed 936K of stale files.
- 3a. Run
cd clients/android && ./gradlew assembleDebug— initial run revealed CMake path errors:REPO_ROOT_DIRinCMakeLists.txtandxptools.cmakeusedCMAKE_CURRENT_BINARY_DIRwhich resolved incorrectly after the repo restructure. Fixed both to useCMAKE_CURRENT_SOURCE_DIR. Build then completed successfully. - 3b. APK generated at
clients/android/app/build/outputs/apk/debug/app-debug.apk(~121 MB).
clients/android/local.properties— create (not committed, gitignored) ✅clients/android/app/google-services.json— copy from template (not committed, gitignored)clients/android/app/build.gradle— fix.envpath (line 16) and keystore paths (lines 31, 37)- Root
android/— delete stale directory