- Install a JDK distribution of your choice
- Download the Android command line tools (scroll down a bit), extract it, and set the
ANDROID_HOME
environment variable to the cmdline-tools directory (the one containingNOTICE.txt
). - Accept licenses by
cd
ing to cmdline-tools/bin and run./sdkmanager --licenses --sdk_root=..
. - Check the version of ndk listed in
android/app/build.gradle
(Ctrl-F ndkVersion) and download that version of the ndk, extract it, and set theANDROID_NDK_HOME
environment variable to the directory inside containingNOTICE
.
- Ensure the version of ndk listed in
android/app/build.gradle
(Ctrl-F ndkVersion) is installed (File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools).
- Install rustup
- Add all supported cpu architecture targets:
rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
- Install cargo-ndk:
cargo install cargo-ndk
- In the
android
directory, run./gradlew assembleRelease
- The apk can be found at
android/app/build/outputs/apk/release/app-release-unsigned.apk