Skip to content

Commit d4aa645

Browse files
committed
Try to fix warning and add debug output to SDK manager setup
1 parent 59a935c commit d4aa645

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/android-install-sdk.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ case "$1" in
4747
;;
4848
esac;
4949

50+
# Try to fix warning about missing file.
51+
# See https://askubuntu.com/a/1078784
52+
mkdir -p /root/.android/
53+
echo '### User Sources for Android SDK Manager' >> /root/.android/repositories.cfg
54+
echo '#Fri Nov 03 10:11:27 CET 2017 count=0' >> /root/.android/repositories.cfg
55+
56+
# Print all available packages
57+
yes | ./sdk/tools/bin/sdkmanager --list --verbose
58+
5059
# --no_https avoids
5160
# javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
5261
yes | ./sdk/tools/bin/sdkmanager --licenses --no_https

0 commit comments

Comments
 (0)