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

View File

@ -35,7 +35,7 @@ if [ ! -d $NDK ]; then
rm ndk.zip rm ndk.zip
fi fi
mkdir -p $ANDROID_HOME/licenses yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
echo -e -n "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
# The android-16 platform is used in the ecj package: # 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" $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1" "platforms;android-26" "platforms;android-16"