java 错误:SSL 对等方关闭不正确

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39074882/
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-11-03 04:04:33  来源:igfitidea点击:

Error:SSL peer shut down incorrectly

javaandroidandroid-studiogithubgit-clone

提问by ghazal

I'm coding in Android studio. I cloned a project from gitHub

我在 Android Studio 中编码。我从 gitHub 克隆了一个项目

https://github.com/QuadFlask/colorpicker

https://github.com/QuadFlask/colorpicker

but I have this problem,

但我有这个问题,

enter image description here

在此处输入图片说明

I don't know how to solve it because I'm new in android studio.

我不知道如何解决它,因为我是 android studio 的新手。

回答by shaojun lyu

I have come across the same problem,here is how i fix it.Change the item distributionUrlof gradle-wrapper.propertiesfile to your local gradle,detail see the picture below:

我也碰到过同样的问题,这是我如何解决it.Change该项目distributionUrlgradle-wrapper.properties文件到本地gradle这个,详细见下图:

enter image description here

在此处输入图片说明

回答by ayvarot

Using httpat the beginning of the distributionUrl resolved it for me:

在 distributionUrl 的开头使用http为我解决了这个问题:

distributionUrl=http://services.gradle.org/distributions/gradle-4.4-all.zip

distributionUrl = HTTP://services.gradle.org/distributions/gradle-4.4-all.zip