user7337635
user7337635

Reputation:

SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch

In Android Studio, when I try to update large SDKs through the SDK Manager, I keep getting the following error:

 SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch!

This always happens with large SDKs. What should I do? I have no idea about what I should do. I use Android Studio 2.2.3 and Windows 7x64. Any help will be appreciated.

Upvotes: 7

Views: 23358

Answers (7)

Maghiyose
Maghiyose

Reputation: 1

A Windows network & security connection causes this issue. If your firewall is off you may need to turn it on. If it's on, try turning it off. You try these options without closing the ANDROID INSTALLATION WINDOW. After trying one of the options then you will need to click retry.

Upvotes: 0

RENE PALACIOS
RENE PALACIOS

Reputation: 1

Another solution may be to disable your Windows firewall or Antivirus Firewall to download correctly the repositories.

Upvotes: 0

zb226
zb226

Reputation: 10500

In my case this error came overnight and went away when I installed pending updates for Windows and the corporate Virusscanner (ESET). So in the end it also may also have been just the subsequent restart of the system.

Upvotes: 1

Quang Vu Tran
Quang Vu Tran

Reputation: 61

In my case, I just access to properties of wifi and switch enable "Set as metered connection" it worked for me. image description here

Upvotes: 1

preckrasno
preckrasno

Reputation: 2661

  1. Open Android Studio
  2. Select "Configure" > "Default Project Structure..." Screenshot 1
  3. Configure "Android SDK location" and save Screenshot 2
  4. Select "Configure" > "SDK Manager"
  5. Go to "SDK Update Sites" and check "Force https://... sources..." Screenshot 3

Upvotes: 3

palacsint
palacsint

Reputation: 28865

We fixed a similar exception in another app with disabling Automatically detect settings in Windows 7 with NOD32 antivirus (Control Panel / Internet Properties / Connections tab / LAN settings button).

Upvotes: 1

anup8urnani
anup8urnani

Reputation: 21

I faced similar problem.I solved it by selecting Force https to be fetched as http option under SDK Update Sites tab of SDK Manager. By Selecting this option you can download only those packages which are having SSLEXECPTION Tag Mismatch error. Once you have done remember to unselect this option. For more clarification refer

Reference Image

Upvotes: 1

Related Questions