All day today I’ve gotten errors when attempting to download android packages, ie:
Installing Archives:
Preparing to install archives
Downloading Android SDK Platform-tools, revision 24.0.2
Download interrupted: Read timed out
Downloading Android SDK Build-tools, revision 24.0.1
Download interrupted: Read timed out
Downloading SDK Platform Android 7.0, API 24, revision 2
Installing SDK Platform Android 7.0, API 24, revision 2
Installed SDK Platform Android 7.0, API 24, revision 2
Done. 1 package installed.
or
> echo y | android update sdk --no-ui --all --filter "android-24,build-tools-24.0.1,platform-tools,extra-android-m2repository,extra-google-m2repository"
Validate XML: https://dl.google.com/android/repository/repository-8.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-8.xml, reason: SocketTimeout Read timed out
Parse XML: https://dl.google.com/android/repository/repository-8.xml
Fetching URL: https://dl.google.com/android/repository/addon.xml
Failed to fetch URL https://dl.google.com/android/repository/addon.xml, reason: SocketTimeout Read timed out
Fetching URL: https://dl.google.com/android/repository/glass/addon.xml
Validate XML: https://dl.google.com/android/repository/glass/addon.xml
Parse XML: https://dl.google.com/android/repository/glass/addon.xml
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Failed to fetch URL https://dl.google.com/android/repository/extras/intel/addon.xml, reason: SocketTimeout Read timed out
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Failed to fetch URL https://dl.google.com/android/repository/sys-img/android/sys-img.xml, reason: SocketTimeout Read timed out
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Any suggestions?
For reference, here’s my circle.yml:
machine:
java:
version: oraclejdk8
dependencies:
pre:
# Get the deps that aren't installed by default on circle.
# --all is required to actually update (ie build-tools sees that there's an existing version and ignores the filter)
- echo y | android update sdk --no-ui --all --filter "android-24,build-tools-24.0.1,platform-tools,extra-android-m2repository,extra-google-m2repository"