安卓编译 因包体太大 编译失败的解决方案 Unable do incremental execution: full task run

编译Android项目时遇到'Unable do incremental execution: full task run'错误,导致任务执行失败。通过查看构建日志,发现'JVM Tenured space is exhausted',即JVM老年代空间耗尽。为了解决这个问题,只需调整Gradle的内存配置。好友分享的解决方案指出,增加Gradle的堆内存分配可以避免此问题。
摘要由CSDN通过智能技术生成

Unable do incremental execution: full task run
:packageDebug FAILED
:packageDebug (Thread[Task worker for ':' Thread 5,5,main]) completed. Took 9.637 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageDebug'.
> org.gradle.tooling.BuildException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 0s
54 actionable tasks: 4 executed, 50 up-to-date
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory

只需要改如下两个配置即可

来自好友的分享~

 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值