编译ionic应用时遇到“To run dex in process, the Gradle daemon needs a larger heap.”
2016-09-20 14:18
633 查看
报错:
To run dex in process, the Gradle daemon needs a larger heap. It currently has approximately 910 MB. For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB. To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties. For more information see https://docs.gradle.org/current/userguide/build_environment.html[/code]
由于gradle编译时的内存资源不足,需要配置更大的内存资源。
再项目根目录查找gradle.properties这个文件,如果没有就新建一个,加入以下内容org.gradle.daemon=true #就是让你让你编译时使用守护进程。 org.gradle.parallel=true #使用并行编译 org.gradle.jvmargs=-Xmx2048m #JVM最大允许分配的堆内存,按需分配 -XX:MaxPermSize=512m #JVM最大允许分堆非内存,
相关文章推荐
- Android Tips 8(To run dex in process, the Gradle daemon needs a larger heap)
- To run dex in process, the Gradle daemon needs a larger heap. It currently has 1024 MB. For faster b
- ionic cordova run android 报Unable to start the daemon process的解决办法
- as,build时出现the Gradle daemon needs a larger heap
- Android开发中出现in the gradle.properties file, sets the maximum Java heap size to 1024m的解决方法
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- 解决Androidstudio:Unable to start the daemon process: could not reserve enough space for object heap
- 程序编译遇到FTH: (7156): *** Fault tolerant heap shim applied to current process. 解决办法
- Unable to start the daemon process--Could not reserve enough space for object heap
- android studio 编译apk出现 设置android studio in the gradle.properties file, sets the maximum Java heap si
- Error:Unable to start the daemon process: could not reserve enough space for object heap.
- cordova build android 打包编译时报错,错误为unable to start the daemon process ......
- 安装redis,执行make test时遇到You need tcl 8.5 or newer in order to run the Redis test
- Android Studio Gradle project sync failed,Gradle sync failed: Unable to start the daemon process.
- unable to start the daemon process:could not reserve enough space for object heap.
- It is not possible to run two different versions of ASP.NET in the same IIS process
- Android Studio: Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.
- Gradle sync failed: Unable to start the daemon process
- Android Studio报错:Unable to start the daemon process: could not reserve enough space for object heap
- AS Error:Unable to start the daemon process: could not reserve enough space for object heap