@@ -93,11 +93,34 @@ named ``tools``, and you will need to run extra commands to install
93
93
the SDK packages needed.
94
94
95
95
For Android NDK, note that modern releases will only work on a 64-bit
96
- operating system. If you are using a 32-bit distribution (or hardware),
97
- the latest useable NDK version is r10e, which can be downloaded here:
96
+ operating system. The minimal, and recommended, NDK version to use is r17c:
97
+
98
+ - `Linux (64-bits) <https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip >`_
99
+ - `Macos X (64-bits) <https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip >`_
100
+ - Windows users should create a virtual machine with an GNU Linux os
101
+ installed, and then you can follow the described instructions from within
102
+ your virtual machine.
103
+
104
+ .. note ::
105
+ Versions below r17 may cause troubles while compiling some recipes. Our
106
+ tests had been done against ndk versions r17b and r17c. Later versions of
107
+ the android ndk still are not proved to work with python-for-android, and
108
+ may work or not...so...better to stick to the recommended version (r17c).
109
+
110
+ If you are using a 32-bit distribution (or hardware),
111
+ the latest usable NDK version is r10e, which can be downloaded here:
98
112
99
113
- `Legacy 32-bit Linux NDK r10e <http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin >`_
100
114
115
+ .. warning ::
116
+ **32-bit distributions **
117
+
118
+ Since the python2 recipe updated to version 2.7.15, the build system has
119
+ been changed and you should use an old release of python-for-android, which
120
+ contains the legacy python recipe (v2.7.2). The last python-for-android
121
+ release with the legacy version of python is version
122
+ `0.6.0 <https://github.com/kivy/python-for-android/archive/0.6.0.zip >`_.
123
+
101
124
First, install a platform to target (you can also replace ``19 `` with
102
125
a different platform number, this will be used again later)::
103
126
@@ -113,7 +136,7 @@ Then, you can edit your ``~/.bashrc`` or other favorite shell to include new env
113
136
114
137
# Adjust the paths!
115
138
export ANDROIDSDK="$HOME/Documents/android-sdk-21"
116
- export ANDROIDNDK="$HOME/Documents/android-ndk-r10e "
139
+ export ANDROIDNDK="$HOME/Documents/android-ndk-r17c "
117
140
export ANDROIDAPI="26" # Target API version of your application
118
141
export NDKAPI="19" # Minimum supported API version of your application
119
142
export ANDROIDNDKVER="r10e" # Version of the NDK you installed
0 commit comments