@@ -84,15 +84,31 @@ Installing Android SDK
8484
8585You need to download and unpack the Android SDK and NDK to a directory (let's say $HOME/Documents/):
8686
87- - `Android SDK <https://developer.android.com/sdk /index.html#Other >`_
87+ - `Android SDK <https://developer.android.com/studio /index.html >`_
8888- `Android NDK <https://developer.android.com/ndk/downloads/index.html >`_
8989
90+ For the Android SDK, you can download 'just the command line
91+ tools'. When you have extracted these you'll see only a directory
92+ named ``tools ``, and you will need to run extra commands to install
93+ the SDK packages needed.
94+
95+ First, install a platform to target (you can also replace ``19 `` with
96+ a different platform number, this will be used again later)::
97+
98+ $SDK_DIR/tools/bin/sdkmanager "platforms;android-19"
99+
100+ Second, install the build-tools. You can use
101+ ``$SDK_DIR/tools/bin/sdkmanager --list `` to see all the
102+ possibilities, but 26.0.2 is the latest version at the time of writing::
103+
104+ $SDK_DIR/tools/bin/sdkmanager "build-tools;26.0.2"
105+
90106Then, you can edit your ``~/.bashrc `` or other favorite shell to include new environment variables necessary for building on android::
91107
92108 # Adjust the paths!
93109 export ANDROIDSDK="$HOME/Documents/android-sdk-21"
94110 export ANDROIDNDK="$HOME/Documents/android-ndk-r10e"
95- export ANDROIDAPI="14 " # Minimum API version your application require
111+ export ANDROIDAPI="19 " # Minimum API version your application require
96112 export ANDROIDNDKVER="r10e" # Version of the NDK you installed
97113
98114You have the possibility to configure on any command the PATH to the SDK, NDK and Android API using:
0 commit comments