Android笔记:. Android Studio创建新项目出错 Could not fetch model of type 'IdeaProject' using Gradle distribut
2016-12-07 00:35
671 查看
问题:
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
Could not create the Java virtual machine.
Consult IDE log for more details (Help | Show Log)
环境:
win7
解决办法:
1 定位到目录 C:\Users\.gradle
2 创建文件gradle.properties
内容:org.gradle.jvmargs=-Xmx512m
3 重启你的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
Could not create the Java virtual machine.
Consult IDE log for more details (Help | Show Log)
环境:
win7
解决办法:
1 定位到目录 C:\Users\.gradle
2 创建文件gradle.properties
内容:org.gradle.jvmargs=-Xmx512m
3 重启你的Android Studio项目,搞定。
相关文章推荐
- Android Studio创建新项目出错 Could not fetch model of type 'IdeaProject' using Gradle distribution
- Android Studio创建新项目出错 Could not fetch model of type 'IdeaProject' using Gradle distribution
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Android Studio下项目编译出错could not find com.android.tools.buildgradle:2.2.2
- Android Studio创建新项目出错 Could not fetch model of type 'IdeaProject' using Gradle distribution
- Android Studio下项目编译出错could not find com.android.tools.buildgradle:2.2.2
- android eclipse gradle 构建 出现 Could not create plugin of type 'AppPlugin' 等错误
- MyEclipse中创建Gradle项目报错: Could not run build action using Gradle installation
- android 导入gradle项目The project is using an unsupported version of Gradle.
- idea 或 Android Studio 报错 Error:Could not run build action using Gradle installation
- Could not get unknown property 'ANDROID_BUILD_SDK_VERSION' for project ':daternagepicker' of type or
- gradle Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.crea
- Error:Could not get unknown property ‘apkVariantData’ for object of type com.android.build.gradle.in
- xamarian studio 创建asp.net mvc razor project 报错:Could not locate Razor Host Factory type: System.We
- 新建Android studio项目后出现Error:Could not determine Java version using executable
- The project 'FeiYueXueTang_Android' may be using a version of Gradle that does not contain the metho
- Eclipse使用Maven插件创建Web项目时出错:Could not resolve archetype org.apache.maven.archetypes
- SharePoint 2010 BDC Model项目部署出错:“The default web application could not be determined.”
- Android Studio bug:Error:Could not run build action using Gradle distribution 'https://services.grad