Eu estava instalando o Android Studio no meu Ubuntu 16.04.4 LTS. Eu fiz o download com sucesso e posso executar com ./studio.sh
de /opt/android-studio/bin
. Depois de executar este comando, ele inicia o download de alguns componentes, mas depois de algum tempo, ele falha e fornece o seguinte log:
Android SDK Build-Tools 27.0.3 and 3 more SDK components were not installed
java.io.IOException: Cannot download
'https://dl.google.com/android/repository/
android_m2repository_r47.zip':
Read timed out
, response: 200 OK
Warning: An error occurred while preparing SDK
package Android Support Repository: Cannot
download 'https://dl.google.com/android/repository/
android_m2repository_r47.zip':
Read timed out
, response: 200 OK.
java.io.IOException: Cannot download
'https://dl.google.com/android/repository/
build-tools_r27.0.3-linux.zip':
Read timed out
, response: 200 OK
Warning: An error occurred while preparing SDK
package Android SDK Build-Tools 27.0.3: Cannot
download 'https://dl.google.com/android/repository/
build-tools_r27.0.3-linux.zip':
Read timed out
, response: 200 OK.
java.io.IOException: Cannot download
'https://dl.google.com/android/repository/
google_m2repository_gms_v11_3_rc05_wear_2_0_5.zip':
Read timed out
, response: 200 OK
Warning: An error occurred while preparing SDK
package Google Repository: Cannot download
'https://dl.google.com/android/repository/
google_m2repository_gms_v11_3_rc05_wear_2_0_5.zip':
Read timed out
, response: 200 OK.
java.io.IOException: Cannot download
'https://dl.google.com/android/repository/
sources-27_r01.zip':
Read timed out
, response: 200 OK
Warning: An error occurred while preparing SDK
package Sources for Android 27: Cannot download
'https://dl.google.com/android/repository/
sources-27_r01.zip':
Read timed out
, response: 200 OK.
java.io.IOException: Cannot download
'https://dl.google.com/android/repository/
platform-27_r01.zip':
Read timed out
, response: 200 OK
Warning: An error occurred while preparing SDK
package Android SDK Platform 27: Cannot download
'https://dl.google.com/android/repository/
platform-27_r01.zip':
Read timed out
, response: 200 OK.
Então, qual é a solução?
Mesmo se eu baixar esses arquivos .zip
externamente, quais são seus respectivos locais onde eu posso extraí-los para fazer o estúdio funcionar?