Android Studio SDK存在一个奇怪的问题。我正在尝试下载一些组件,当下载进度达到100%时,我收到错误:
Preparing "Install Google Repository".
Downloading https://dl.google.com/android/repository/google_m2repository_gms_v8_rc42_wear_2a3.zip
An error occurred while preparing SDK package Google Repository: Cannot download 'https://dl.google.com/android/repository/google_m2repository_gms_v8_rc42_wear_2a3.zip': Read timed out
, response: 200 OK.
"Install Google Repository" failed.
Preparing "Install Android Support Repository".
Downloading https://dl.google.com/android/repository/android_m2repository_r40.zip
An error occurred while preparing SDK package Android Support Repository: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r40.zip': Read timed out
, response: 200 OK.
"Install Android Support Repository" failed.
Failed packages:
- Google Repository (extras;google;m2repository)
- Android Support Repository (extras;android;m2repository)
当我手动执行此操作时,链接可以正常工作。
答案 0 :(得分:3)
看起来您正在尝试更新Android Studio,但您有一个未在其中设置的代理。
如果您想设置一个:转到首选项 - >外观@行为 - >系统设置 - > HTTP代理。
答案 1 :(得分:0)
以下步骤对我有用。 第1步:文件|设置|外观与行为|系统设置| HTTP代理 步骤2:清除密码,然后单击确定。