我在使用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)
当我手动操作时,链接正常工作。