无法导入新的Gradle项目:无法获取“ IdeaProject”类型的模型
问题内容:
当我启动android studio时,出现以下错误:
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 Studio和Latest(1.6)Gradle。这是什么问题?我使用32位窗口8
问题答案:
重要提示:我是在新的Android Studio上完成的!如果您有插件,那么它可能不适合您!
我找到了适合我的解决方案:
- 去摇篮
- 下载最新版本
- 在Android Studio中打开Grandle的位置(在我的情况下为:C:\ Program Files(x86)\ Android \ android-studio \ plugins \ gradle“
- 重要提示 :备份您现有的Android Studio gradle lib文件夹(以防万一,如一些评论者所指出的那样)
- 从2打开下载文件。
- 用下载文件中的lib文件夹覆盖Android Studio中的lib文件夹。
一切都应该像魅力一样工作:)