- Install Android Studio.
- Open the SDK manager in Android Studio, and install the NDK.
- Open Preferences > Plugins in Android Studio, and install the Rust plugin.
- Install Rust.
- Add Android targets to
Rust:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
Note Check out Fixing build error for Above NDK 23 and above if you are facing -lgcc
linking errors