2017-07-27 949 views
-2

在Mac上,安装了最新的Android Studio组件出现故障,并出现以下错误:的Android Studio组件安装失败在Mac

Preparing "Install Android Support Repository (revision: 47.0.0)". Downloading https://dl.google.com/android/repository/android_m2repository_r47.zip https://dl.google.com/android/repository/android_m2repository_r47.zip "Install Android Support Repository (revision: 47.0.0)" failed. Preparing "Install Google APIs Intel x86 Atom System Image (revision: 4)". Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-26_r04.zip https://dl.google.com/android/repository/sys-img/google_apis/x86-26_r04.zip "Install Google APIs Intel x86 Atom System Image (revision: 4)" failed.

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/sys-img/google_apis/x86-26_r04.zip ': Read timed out , response: 200 OK Warning: An error occurred while preparing SDK package Google APIs Intel x86 Atom System Image: Cannot download ' https://dl.google.com/android/repository/sys-img/google_apis/x86-26_r04.zip ': Read timed out , response: 200 OK.

我不知道为什么会超时,因为我在一个40MB的下拉连接。

我能做什么?

注:这是一个新的Android下载Studio安装,而不是升级或任何

+0

你可以自己下载的链接,并将其移动到SDK目录 –

回答

0

日志显示你有某种网络错误的。 如果你有一个弹出窗口,询问是否允许Java的互联网连接,你应该允许它

Read timed out , response: 200 OK Warning: An error occurred while preparing SDK package Android Support