6

我尝试在 Android Studio 中创建新项目时收到此错误消息:

Failed to import Gradle project: Error unmarshaling return header; 
nested exception is: java.net.SocketException: Connection reset
4

3 回答 3

2
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.
于 2013-07-29T03:35:37.557 回答
0

我是同样的错误,我用这个解决方案解决了它:

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

来源:http ://tools.android.com/recent/androidstudio020released

我希望这对你有帮助

于 2013-08-01T08:26:09.760 回答
0

此处描述的修复对我有用。-Dexternal.system.in.process=true 需要在 Android Studio 的 VM 选项中设置。

于 2013-08-23T07:48:09.157 回答