Android Studio: Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.
2016-07-28 21:41
836 查看
创建项目的时候报错:
Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
org.gradle.jvmargs=-Xmx1024m
解决办法:
其实报错信息已经告诉你怎么做了
打开项目的gradle.properties文件,往里面添加一行:
org.gradle.jvmargs=-Xmx1024m
Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
org.gradle.jvmargs=-Xmx1024m
解决办法:
其实报错信息已经告诉你怎么做了
打开项目的gradle.properties文件,往里面添加一行:
org.gradle.jvmargs=-Xmx1024m
相关文章推荐
- 从Object-C -> Swift3.0
- jQuery serializeObject 序列化form表单Json对象 jQuery.extend()合并对象
- Swift与Objective-C的兼容“黑魔法”:@objc和Dynamic
- objective-C之宏定义实现单例设计模式
- Effetive Objective - C 1.Objective 9
- netty 第二章 从client 传递Object 对象到server
- 各种细的知识点(二)
- a different object with the same identifier value was already associated with the session:
- Qt之Threads和QObjects
- Qt之Threads和QObjects
- Qt之Threads和QObjects
- Objective-C中一种消息处理方法performSelector: withObject:
- PyGobject(三十五)布局容器之ShortcutsWindow
- DataInputStream && ObjectInputStream 示例
- PyGobject(三十四)布局容器之Assistant
- The type java.lang.Object cannot be resolved.It is indirectly referenced from required .class files。
- PyGobject(三十三)布局容器之ApplicationWindow
- 关于NSMutableArray 调用 addObject 方法崩溃
- PyGobject(三十二)布局容器之Window
- PyGobject(三十一)布局容器之EventBox