idea引入gradle项目 出现堆空间耗尽Expiring Daemon because JVM heap space is exhausted Daemon will be stopped at

1、简诉:

	idea引入gradle项目 出现堆空间耗尽Expiring Daemon because JVM
	heap space is exhausted Daemon will be stopped at

2、错误详情:

Starting Gradle Daemon...
Gradle Daemon started in 1 s 569 ms
> Task :prepareKotlinBuildScriptModel UP-TO-DATE
Expiring Daemon because JVM heap space is exhausted
Daemon will be stopped at the end of the build after running 
out of JVM memory

解决方式:

仓库地址无法连接到
系统maven
收集的其他方式:

//添加gradle.properties 文件
#开启线程守护,第一次编译时开线程,之后就不会再开了
org.gradle.daemon=true
#配置编译时的虚拟机大小
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#开启并行编译,相当于多条线程再走
org.gradle.parallel=true
#启用新的孵化模式
org.gradle.configureondemand=true
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值