Better way of accepting Android SDK licenses

This commit is contained in:
Fredrik Fornwall 2017-11-02 00:21:36 +01:00
parent ea70319bff
commit 45e048f512
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ if [ ! -d $NDK ]; then
rm ndk.zip
fi
mkdir -p $ANDROID_HOME/licenses
echo -e -n "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
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"