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

14,444

Solution 1

  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

Solution 2

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

Solution 3

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.

Solution 4

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

Share:
14,444
Admin
Author by

Admin

Updated on June 22, 2022

Comments

  • Admin
    Admin almost 2 years

    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.