Android SDK 管理器 SSL 对等端错误关闭

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11571201/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:04:34  来源:igfitidea点击:

Android SDK manager SSL peer shut down incorrectly

androidsdk

提问by user1539401

When I try using Android SDK manager to download the ARM EABI for Android 4.1 it refuses to to install it. I get the following message: "SSL peer shut down incorrectly". This is on a Windows XP OS. Any idea what is happening here and what I can do to resolve the problem?

当我尝试使用 Android SDK 管理器下载适用于 Android 4.1 的 ARM EABI 时,它拒绝安装它。我收到以下消息:“SSL 对等方关闭不正确”。这是在 Windows XP 操作系统上。知道这里发生了什么以及我可以做些什么来解决问题吗?

回答by jaguado

The problem is caused by some kind of incompatibility with HTTPS.

该问题是由与 HTTPS 的某种不兼容引起的。

For solve this, in the Android SDK settings, in "SDK Update Sites" tab, at bottom, check the option "Force https://... sources to be fetched using http://...".

为了解决这个问题,在 Android SDK 设置中,在“SDK 更新站点”选项卡的底部,选中选项“强制 https://... 使用 http://... 获取源”。

Then try again to download the package.

然后再次尝试下载包。

回答by VeeyaaR

This is because you are trying to access a https link using http protocol. By default android allows only http requests. To change go to

这是因为您正在尝试使用 http 协议访问 https 链接。默认情况下,android 只允许 http 请求。要改变去

**File-->Settings-->System Settings --> Android SDK **

**文件-->设置-->系统设置--> Android SDK **

Click on SDK Update Sites tab. At the bottom check Force https// sources to be fetched using http//

单击 SDK 更新站点选项卡。在底部检查强制使用 http// 获取 https// 源

Happy Coding

快乐编码

回答by Vishal Kumar

Open Android SDK Manager Go to SDK Update sites Check Force https// sources to be fetched using http

打开 Android SDK 管理器转到 SDK 更新站点 检查强制使用 http 获取 https// 源

enter image description here

在此处输入图片说明

回答by Abo Goda

__ clean and rebuild ... not working __ force https.. not working

__ 清理和重建 ... 不工作 __ 强制 https .. 不工作

I fixed it by this way.

我是这样修的。

1- open the gradle-wrapper.properties file, Modify the distributionUrl

1-打开gradle-wrapper.properties文件,修改distributionUrl

distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

2- exchange https by http and sync after running and downloading little part stop it and then turn it back to https and sync .. voila it is working.

2-通过http交换https并在运行和下载小部分后同步停止它,然后将其转回https并同步..瞧它正在工作。

回答by Javanshir

No matter how stupid it sounds, on Mac restarting the computer solves the problem. I spent several hours trying to fix the problem, restarted the computer for some reason and it worked.

无论听起来多么愚蠢,在 Mac 上重新启动计算机都可以解决问题。我花了几个小时试图解决这个问题,出于某种原因重新启动了计算机并且它起作用了。

I got the same problem after a couple months, restarting the computer solved the problem again.

几个月后我遇到了同样的问题,重新启动计算机再次解决了问题。

回答by csu

For me, i must DISABLE VPN, otherwise it can't download gradle zip in the gradle-wrapper.properties file :

对我来说,我必须禁用 VPN,否则它无法在 gradle-wrapper.properties 文件中下载 gradle zip:

File: gradle-wrapper.properties

文件:gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

distributionUrl= https://services.gradle.org/distributions/gradle-5.1.1-all.zip

回答by san88

Please check your internet connection and restart Android Studio. I have faced this error due to unavailability of internet.

请检查您的互联网连接并重新启动 Android Studio。由于互联网不可用,我遇到了这个错误。

回答by Haseeb Mohamed

1.Download the particular version you wish to download from https://services.gradle.org/distributions/

1.从https://services.gradle.org/distributions/下载您要下载的特定版本

2.Modify the distributionUrlin the gradle-wrapper.propertiesfile to version you have downloaded. For example, gradle-4.6-all.zip

2.Modify的distributionUrlgradle-wrapper.properties到版本已下载的文件。例如,gradle-4.6-all.zip

3.Paste the file to the location ~/AndroidStudioProjects/YourProjectFolder/gradle/wrapper/

3.将文件粘贴到该位置 ~/AndroidStudioProjects/YourProjectFolder/gradle/wrapper/

Hope this solves the issue.

希望这能解决问题。