I got this error message while I tried to create a new project in Android studio :
Failed to import Gradle project: Error unmarshaling return header;
nested exception is: java.net.SocketException: Connection reset
Go to Gradle
Download last version
Open grandle location within Android Studio (in my case is: C:\Program Files (x86)\Android\android-studio\plugins\gradle"
Important: backup your existing Android Studio gradle lib folder (in case things go wrong, as some of the commenters have pointed out)
Open download file from 2.
Override lib folder within Android Studio with lib folder within downloaded file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With