Skip to content Skip to sidebar Skip to footer

Getting "gradle Sync Failed: Connection Reset" In Android Studio

While creating a simple project in Android Studio, I am getting this error. The log file for your reference: 2018-08-13 10:56:47,583 [e-1024-b02] INFO - e.project.sync.GradleSync

Solution 1:

Just go to the .gradle folder in your Users/{username}/.gradle. Open gradle properties if there are proxy settings, comment them out and save it.(This problem might occur because Android studio does not automatically clear proxy cache settings). And Sync your project

Solution 2:

For Android studio 3.0.0

required Gradle version: 4.1

File > Project Structure > Project

required Build Tools 26.0.2

Solution 3:

Add google repository to your gradle file:

repositories {
    maven()
    //other repositories...google()
}

Try to download from SDK manager: SDK Manager Android Studio

Check your gradle and plugin version: https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle

Solution 4:

go to gradle.properties and delete all proxy you added before . and save it and back to Android Studio and Sync it again .

Post a Comment for "Getting "gradle Sync Failed: Connection Reset" In Android Studio"