未安装 Android SDK Build-Tools 和 SDK 组件

未安装 Android SDK Build-Tools 和 SDK 组件

我在 Ubuntu 16.04.4 LTS 上安装 Android Studio。我成功下载了它,并且可以从 运行./studio.sh/opt/android-studio/bin执行此命令后,它开始下载一些组件,但一段时间后,它失败并给出以下日志:

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.

那么解决方案是什么?

即使我.zip从外部下载这些文件,我可以在各自的哪些位置提取它们以使工作室正常运行?

相关内容