Android Studio无法下载组件

前端之家收集整理的这篇文章主要介绍了Android Studio无法下载组件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我对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)

当我手动完成时,链接工作.

最佳答案
看起来您正在尝试更新Android Studio,但您有一个未设置的代理.

如果您想设置一个:转到首选项 – >外观@行为 – >系统设置 – > HTTP代理.

原文链接:https://www.f2er.com/android/430084.html

猜你在找的Android相关文章