You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio安装故障:模拟器未完成安装且出现javax.net.ssl.SSLException: Tag mismatch错误

Fixing "javax.net.ssl.SSLException: Tag mismatch" for Android Emulator Installation

I see you’ve shared a screenshot of this frustrating error where every other Android Studio component installs smoothly, but the Android Emulator fails with:

Error: javax.net.ssl.SSLException: Tag mismatch
Warning: An error occurred while preparing SDK package Android Emulator: Tag mismatch

I’ve run into this exact issue before, and it almost always boils down to corrupted download caches or SSL handshake hiccups. Here are the step-by-step fixes that worked for me and other developers:

1. Clear Android Studio’s SDK Cache (Most Likely Fix)

Corrupted cache files are the #1 culprit here. Let’s wipe them and start fresh:

  • Open Android Studio, go to Settings (Windows/Linux: File > Settings; Mac: Android Studio > Settings)
  • Navigate to Appearance & Behavior > System Settings > Android SDK
  • Switch to the SDK Tools tab, uncheck the "Android Emulator" box, and click Apply to uninstall it
  • Close Android Studio entirely
  • Locate your SDK’s cache folder:
    • Windows: C:\Users\<YourUsername>\.android\cache
    • Mac: ~/Library/Android/sdk/.android/cache
    • Linux: ~/.android/cache
  • Delete every file in this folder (don’t worry, it’ll rebuild automatically)
  • Reopen Android Studio, head back to SDK Tools, recheck "Android Emulator", and click Apply to reinstall

2. Temporary Switch to HTTP (Bypass SSL Verification)

Sometimes network proxies or misconfigured SSL certificates block the HTTPS download. Try this temporary workaround:

  • In SDK Manager, click the gear icon in the top-right corner and select SDK Update Sites
  • For every entry starting with https://, edit the URL to use http:// instead (e.g., change https://dl.google.com/android/repository/addon-6.xml to http://dl.google.com/android/repository/addon-6.xml)
  • Click Apply, then retry installing the Emulator
  • Important: Once the Emulator installs successfully, switch the URLs back to https:// to keep your downloads secure

3. Manually Download & Install the Emulator

If the above methods fail, manual installation is a surefire way to bypass the SDK Manager’s SSL issues:

  • In SDK Manager’s SDK Tools tab, note the exact version of Android Emulator you need (e.g., 32.1.14)
  • Download the corresponding Emulator zip file for your operating system (match your system architecture: x86_64/arm64)
  • Navigate to your SDK installation directory, find the emulator folder, and replace all its contents with the extracted files from the zip
  • Restart Android Studio, and the Emulator should now be recognized

4. Check Network Proxies & System SSL Certificates

  • If you’re using a corporate or third-party proxy, disable it temporarily—proxies often interfere with SSL handshakes and cause tag mismatch errors
  • Verify your system’s root SSL certificates are up to date:
    • Windows: Open Certificate Manager, go to "Trusted Root Certification Authorities" and check for expired certificates
    • Mac: Open Keychain Access, navigate to "System Roots" and update any outdated certificates
    • Linux: Run sudo apt update && sudo apt install --reinstall ca-certificates (for Debian/Ubuntu-based distros)

内容的提问来源于stack exchange,提问作者Skar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 20:59:06