user1539401
user1539401

Reputation: 303

Android SDK manager SSL peer shut down incorrectly

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?

Upvotes: 28

Views: 44253

Answers (9)

Arifmmmdov
Arifmmmdov

Reputation: 11

In the last version which is Giraffe, find the File -> Settings -> Language & Frameworks -> Android SDK You can see SDK updates menu in the frame. Click, and there is Force https// sources to be fetched using http// option, click the checkbox to make checked.

Now, you're ready to work)

Upvotes: 0

csu
csu

Reputation: 395

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

File: gradle-wrapper.properties

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

Upvotes: 1

Javanshir
Javanshir

Reputation: 792

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.

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

Upvotes: 1

Abo Goda
Abo Goda

Reputation: 1

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

I fixed it by this way.

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

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.

Upvotes: 0

Vishal Kumar
Vishal Kumar

Reputation: 4627

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

enter image description here

Upvotes: 5

jaguado
jaguado

Reputation: 481

The problem is caused by some kind of incompatibility with 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://...".

Then try again to download the package.

Upvotes: 48

Haseeb Mohamed
Haseeb Mohamed

Reputation: 1479

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

2.Modify the distributionUrl in the gradle-wrapper.properties file to version you have downloaded. For example, gradle-4.6-all.zip

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

Hope this solves the issue.

Upvotes: 0

san88
san88

Reputation: 1384

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

Upvotes: 0

VeeyaaR
VeeyaaR

Reputation: 311

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

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

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

Happy Coding

Upvotes: 6

Related Questions