In the project root for your Android crate, run cargo apk build. Set the environment variables NDK_HOME to the path of the NDK and ANDROID_HOME to the path of the SDK.Install cargo-apk with cargo install cargo-apk.android-sdk/tools/bin/sdkmanager "platform-tools" "platforms android-29" "build-tools 29.0.0". Install the Java JRE or JDK (on Ubuntu, sudo apt-get install openjdk-8-jdk).rustup target add aarch64-linux-android.rustup target add armv7-linux-androideabi.Building will attempt to build for all supported targets unless the build targets are adjusted via Cargo.toml.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |