Travis: Fix accepting Android SDK licenses
It has been failing since a few days, apparently `sdkmanager --licenses` is no longer sufficient to accept all licenses, the `platform-tools` install triggers another license dialog. Now saying yes to all just in case.
This commit is contained in:
parent
f0035b7cc7
commit
8a5a24c6dd
|
@ -71,11 +71,11 @@ if [ ! -d $ANDROID_NDK_DIR ]; then
|
|||
fi
|
||||
|
||||
echo "Installing: Android Tools ..."
|
||||
#$ANDROID_SDK_DIR/tools/bin/sdkmanager --all
|
||||
mkdir -p ~/.android && echo "count=0" > ~/.android/repositories.cfg
|
||||
yes | $ANDROID_SDK_DIR/tools/bin/sdkmanager --licenses > /dev/null
|
||||
$ANDROID_SDK_DIR/tools/bin/sdkmanager 'tools' > /dev/null
|
||||
$ANDROID_SDK_DIR/tools/bin/sdkmanager 'platform-tools' > /dev/null
|
||||
$ANDROID_SDK_DIR/tools/bin/sdkmanager 'build-tools;28.0.1' > /dev/null
|
||||
yes | $ANDROID_SDK_DIR/tools/bin/sdkmanager 'tools' > /dev/null
|
||||
yes | $ANDROID_SDK_DIR/tools/bin/sdkmanager 'platform-tools' > /dev/null
|
||||
yes | $ANDROID_SDK_DIR/tools/bin/sdkmanager 'build-tools;28.0.1' > /dev/null
|
||||
echo
|
||||
|
||||
EXPORT_VAL="export ANDROID_HOME=$ANDROID_SDK_PATH"
|
||||
|
|
Loading…
Reference in New Issue