Android Studio报错Gradle sync failed: Received close_notify during handshake

AS project Gradle sync errorGradle sync failed: Received close_notify during handshake

Because when Android studio compiles the project’s build.gradle, the data in jcenter cannot be downloaded. (Note: My report of this error may be that the company has permission to access the network, so it cannot access the data of jcenter)

Solution: Open the project build.gradle file (AS projects generally have two build.gradle file, a rate belongs Project, a rate belongs Module), replace buildscript and allprojects in jcenter into Ali cloud on it. As shown in the figure:
Insert picture description here

        maven{
    
     url'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven{
    
     url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}

Guess you like

Origin blog.csdn.net/iningwei/article/details/107059611
Recommended