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

Android Studio 3.5.3创建Kotlin新项目报错:Received close_notify during handshake

Troubleshooting "ERROR: Received close_notify during handshake" in Android Studio 3.5.3 (Kotlin)

Hey there! That handshake error usually isn't directly caused by Android Studio 3.5.3 itself—it's almost always tied to network hiccups when trying to download dependencies (like Gradle, Kotlin plugins, or library artifacts) during project setup. Let's walk through some tried-and-true fixes:

Common Fixes to Try

  • Check your proxy or VPN settings
    A misconfigured proxy or active VPN is one of the top culprits here. Head to File > Settings > Appearance & Behavior > System Settings > HTTP Proxy and try switching to No proxy temporarily. If you need a proxy for your network, double-check the host, port, and authentication details are correct. Apply changes and restart Android Studio.

  • Clear your Gradle cache
    Corrupted cache files can break dependency downloads. Navigate to your user directory and delete the .gradle folder:

    • Windows: C:\Users\<YourUsername>\.gradle
    • Mac/Linux: ~/.gradle
      After deleting, restart Android Studio and let it re-download all necessary files from scratch.
  • Verify Gradle and Kotlin version compatibility
    Android Studio 3.5.3 works best with specific Kotlin plugin versions (around 1.3.50). Open your project's root build.gradle file and ensure the Kotlin classpath uses a compatible version:

    buildscript {
        ext.kotlin_version = '1.3.50'
        dependencies {
            classpath "com.android.tools.build:gradle:3.5.3"
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    

    Sync your project after making this tweak.

  • Switch to domestic Maven mirrors
    If you're in a region with limited access to Maven Central or Google's repositories, replacing them with a mirror (like Alibaba's) can fix download timeouts. Update your root build.gradle repositories block:

    allprojects {
        repositories {
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            mavenCentral()
        }
    }
    
  • Use Android Studio's embedded JDK
    Custom JDK installations sometimes trigger SSL handshake issues. Go to File > Project Structure > SDK Location and check the box for Use embedded JDK (recommended). Restart your project afterward.

Wrapping Up

More often than not, this error is a network or caching issue rather than a bug in Android Studio 3.5.3. Try these steps one by one, and you should be able to get your Kotlin project up and running smoothly.

内容的提问来源于stack exchange,提问作者Aditya Vyas-Lakhan

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.14 09:09:39