mkdir -p $NDK
cd $NDK/..
rm -Rf `basename $NDK`
- NDK_VERSION=r15c
+ NDK_VERSION=r16
curl --fail --retry 3 -o ndk.zip \
http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
-# The android-16 platform is used in the ecj package:
-$ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1" "platforms;android-26" "platforms;android-16"
+# The android-21 platform is used in the ecj package:
+$ANDROID_HOME/tools/bin/sdkmanager "build-tools;27.0.3" "platforms;android-27" "platforms;android-21"