22
33# Usage
44
5- ## With docker
5+ ## With Docker
66
7- The easiest way to compile for Android is to use [ docker ] ( https://www.docker.com/ ) and the
7+ The easiest way to compile for Android is to use [ Docker ] ( https://www.docker.com/ ) and the
88[ tomaka/cargo-apk] ( https://hub.docker.com/r/tomaka/cargo-apk/ ) image.
99
1010In order to build an APK, simply do this:
@@ -30,17 +30,14 @@ After the build is finished, you should get an Android package in `target/androi
3030
3131Before you can compile for Android, you need to setup your environment. This needs to be done only once per system.
3232
33- - Install [ ` rustup ` ] ( http ://rustup.rs) .
33+ - Install [ ` rustup ` ] ( https ://rustup.rs/ ) .
3434 - Run ` rustup target add arm-linux-androideabi ` , or any other target that you want to compile to.
35-
36- - Install the Java JDK (on Ubuntu, ` sudo apt-get install openjdk-8-jdk ` )
37- - Install CMake (on Ubuntu, ` sudo apt-get install cmake ` )
35+ - Install the Java JDK (on Ubuntu, ` sudo apt-get install openjdk-8-jdk ` ).
36+ - Install CMake (on Ubuntu, ` sudo apt-get install cmake ` ).
3837 - [ Install Gradle] ( https://gradle.org/install/ ) .
39-
40- - Download and unzip [ the Android NDK] ( http://developer.android.com/tools/sdk/ndk/index.html )
41- - Download and unzip [ the Android SDK] ( http://developer.android.com/sdk/index.html ) (under * SDK Tools Only* at the bottom)
42- - Install some components in the SDK: ` ./android-sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-18" "build-tools;26.0.1" `
43-
38+ - Download and unzip [ the Android NDK] ( https://developer.android.com/ndk ) .
39+ - Download and unzip [ the Android SDK] ( https://developer.android.com/studio ) .
40+ - Install some components in the SDK: ` ./android-sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-18" "build-tools;26.0.1" ` .
4441 - Install ` cargo-apk ` with ` cargo install cargo-apk ` .
4542 - Set the environment variables ` NDK_HOME ` to the path of the NDK and ` ANDROID_HOME ` to the path of the SDK.
4643
0 commit comments