Reputation:
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
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
Reputation: 1
Another solution may be to disable your Windows firewall or Antivirus Firewall to download correctly the repositories.
Upvotes: 0
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
Reputation: 61
In my case, I just access to properties of wifi and switch enable "Set as metered connection" it worked for me.
Upvotes: 1
Reputation: 2661
Upvotes: 3
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
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
Upvotes: 1