我在下载android sdk时遇到错误

时间:2018-05-11 16:57:50

标签: android sdk

嗨,我下载了android studio 3.1.2并安装了它,但是gradle没有同步。我试图修复它,但我不能,然后我卸载Android工作室并删除所有关于它的事情像sdk ...之后,我重新安装了android工作室,并希望下载sdk经理,当下载开始我有那些错误,我附上了图片:Downloading components

java.io.IOException: Cannot download 'https://dl.google.com/android/repository/emulator-windows-4623001.zip': 
SSL peer shut down incorrectly ,
 response: 200 OK Warning: An error occurred while preparing SDK package Android Emulator: 
Cannot download 'https://dl.google.com/android/repository/emulator-windows-4623001.zip': 
SSL peer shut down incorrectly ,
 response: 200 OK. 
"Install Android Emulator (revision: 27.1.12)" failed. Preparing "Install Android Support Repository (revision: 47.0.0)".
 Downloading https://dl.google.com/android/repository/android_m2repository_r47.zip java.io.IOException: 
Cannot download 'https://dl.google.com/android/repository/android_m2repository_r47.zip': Unexpected end of file from server ,
 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': 
Unexpected end of file from server ,
 response: 200 OK.

1 个答案:

答案 0 :(得分:0)

尝试以下方法,

  1. 转到Build - >清洁项目。
  2. 转到SDK Manager并尝试重新下载。