@@ -84,15 +84,31 @@ Installing Android SDK
84
84
85
85
You need to download and unpack the Android SDK and NDK to a directory (let's say $HOME/Documents/):
86
86
87
- - `Android SDK <https://developer.android.com/sdk /index.html#Other >`_
87
+ - `Android SDK <https://developer.android.com/studio /index.html >`_
88
88
- `Android NDK <https://developer.android.com/ndk/downloads/index.html >`_
89
89
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
+
90
106
Then, you can edit your ``~/.bashrc `` or other favorite shell to include new environment variables necessary for building on android::
91
107
92
108
# Adjust the paths!
93
109
export ANDROIDSDK="$HOME/Documents/android-sdk-21"
94
110
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
96
112
export ANDROIDNDKVER="r10e" # Version of the NDK you installed
97
113
98
114
You have the possibility to configure on any command the PATH to the SDK, NDK and Android API using:
0 commit comments