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

7

7

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.

Airwaves answered 27/1, 2017 at 16:4 Comment(0)
B
3
  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
Beitz answered 2/7, 2020 at 7:18 Comment(0)
V
1

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

Valaree answered 24/5, 2017 at 10:24 Comment(0)
Q
1

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).

Quackery answered 17/8, 2020 at 15:26 Comment(0)
M
1

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

Milan answered 21/1, 2021 at 13:17 Comment(0)
F
1

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.

Filberto answered 17/2, 2021 at 10:33 Comment(0)
S
0

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

Satrap answered 21/6, 2023 at 5:52 Comment(0)
D
0

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.

Duumvir answered 6/5 at 5:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.