无法导入新的 Gradle 项目:无法获取类型为“IdeaProject”的模型

当我开始Android工作室时,我得到这个错误:

Failed to import new Gradle project: Could not fetch model of type 'IdeaProject' using    Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at     http://gradle.org/docs/1.6/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Consult IDE log for more details (Help | Show Log)

我使用最新的Android工作室和最新的(1.6)gradle。这有什么问题?我使用32位窗口8


答案 1

如果您将 Studio 升级到 0.2 版本,请打开 SDK 管理器,并确保安装了“Extras/Android 支持存储库”(而不仅仅是 Android 支持库)。

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


答案 2

可能是代理问题,可以通过添加代理地址来解决。

工作室-->设置-->HTTP代理-->使用代理并添加代理详细信息,并通过检查连接进行验证。


推荐