简体   繁体   中英

Error in android studio while creating a new project

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.

I was the same error, I resolved it with this solution :

Open the SDK manager
Make sure that the "Extras/Android Support Repository" (not just Android Support Library) is installed or updated.

Source: http://tools.android.com/recent/androidstudio020released

I hope this help you

Fix described here workes for me. -Dexternal.system.in.process=true setting is needed in VM options of Android Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM