Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:SSL peer shut down incorrectly In Android studio 3.0.1 [closed]

When I build the project I receive the following error Error:SSL peer shut down incorrectly please let me know how to fix this error

like image 551
Rahul Wadhai Avatar asked Dec 04 '17 09:12

Rahul Wadhai


People also ask

How do I fix SSL peer shutdown is incorrectly?

In the IDE Settings section select Server Certificates, then check accept non-trusted certificates automatically . If the problem persist, then you should add the certificates to Android Studio, like *. google.com certificate.


3 Answers

It's probably a certificate problem, I had similar issue with Android Studio and I solved it by following these steps:

1 - Open gradle-wrapper-properties file and modify https:// to http://

2 - Force using http instead of https in Android SDK Manager, just click on SDK Manager icon above on Android Studio Toolbar and go to SDK Update Sites tab.

3 - Go to File -> Settings. In the IDE Settings section select Server Certificates, then check accept non-trusted certificates automatically. If the problem persist, then you should add the certificates to Android Studio, like *.google.com certificate. In my case I tried to add multiple certificates but I still get SSL Error, After I opened https://services.gradle.org in my browser and I imported the certificate to Android Studio, Anyhow adding this as an SSL exception resolved the issue for me.

If the problem persist, I recommend to configure a proxy to just install the desirable dependencies. Open Gradle properties for proxy settings and add the following:

systemProp.http.proxyHost=x
systemProp.https.proxyPort=y
systemProp.https.proxyHost=x
systemProp.http.proxyPort=y
like image 98
iLyas Avatar answered Oct 20 '22 02:10

iLyas


My problem was solved Clean Project and then `Rebuild Project.. Hope this helps you,,

like image 17
Syed Muhammad Zeejah Hashmi ze Avatar answered Oct 20 '22 01:10

Syed Muhammad Zeejah Hashmi ze


You have a slow Internet Connection & Your Android Studio Build got interrupted. Try to build in offline mode or fix your internet

like image 5
user987760 Avatar answered Oct 20 '22 01:10

user987760