Gradle sync failed: Out of memory: PermGen space
2016-04-05 14:51
701 查看
在用户的根目录下,创建个gradle.properties文件(C:\Users\Administrator\.gradle\gradle.properties),
设置其内容为(参见:陈煜东的博客和stackoverflow.com):
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
Read Gradle's configuration guide
Read about Java's heap size
上述设置,可能还是不行。那就重启Android Studio。重启,重启,重启!
设置其内容为(参见:陈煜东的博客和stackoverflow.com):
org.gradle.daemon=true org.gradle.parallel=true org.gradle.jvmargs=-Xmx1136m
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
Read Gradle's configuration guide
Read about Java's heap size
上述设置,可能还是不行。那就重启Android Studio。重启,重启,重启!
:app:transformNative_libsWithSyncJniLibsForDebug FAILED Error:Execution failed for task ':app:transformNative_libsWithSyncJniLibsForDebug'. > error清除Module的app/build文件夹!清除build文件夹!清除build文件夹!
相关文章推荐
- AFNetworking的报错Error Domain=NSURLErrorDomain Code=-1012 解决问题
- 56 RAII实现智能指针
- gdb在运行maintenance info program-spaces命令时coredump
- 移动诊疗和人工智能序言
- intellij创建安卓项目时Crunching cruncher ***.png failed的解决
- [z] 人工智能和图形学、图像处理方面的各种会议的评级
- Light OJ 1252 Maintaining Communities (树形DP)
- Daily Sentence
- VirtualBox installation failure on Windows
- raid0
- 数据一致性(consistency)、服务可用性(availability)、分区容错性(partition-tolerance)
- USACO 1.3-Barn Repair
- How Browsers Work<二>渲染引擎--painting
- 根据慕课网Daisy老师教程写的 爱心鱼 网页小游戏
- UltraISO制作U盘启动盘安装Win7系统攻略
- uva 10245 The Closest Pair Problem
- ubuntu14.04启动提示set_sw_state failed
- Freeswitch 高级主题之用kamailio负载均衡
- error: linker command failed with exit code 1 (use -v to see invocation
- 设计模式:责任链模式(Chain of Responsibility)