setup-android-sdk.sh: Update from NDK r15 to r15b
[termux-packages] / scripts / setup-android-sdk.sh
index 9ec1c74..283f635 100755 (executable)
@@ -25,7 +25,7 @@ if [ ! -d $NDK ]; then
        mkdir -p $NDK
        cd $NDK/..
        rm -Rf `basename $NDK`
-       NDK_VERSION=r14
+       NDK_VERSION=r15b
        curl --fail --retry 3 -o ndk.zip \
                http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
 
@@ -35,6 +35,6 @@ if [ ! -d $NDK ]; then
        rm ndk.zip
 fi
 
-mkdir $ANDROID_HOME/licenses
+mkdir -p $ANDROID_HOME/licenses
 echo -e -n "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
 $ANDROID_HOME/tools/bin/sdkmanager "build-tools;25.0.3" "platforms;android-25"