Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4|回复: 0
打印 上一主题 下一主题

windows android studio编译程序出错误

[复制链接]

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
跳转到指定楼层
楼主
发表于 2016-8-13 22:08:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. To run dex in process, the Gradle daemon needs a larger heap.
  2. It currently has approximately 910 MB.
  3. For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
  4. To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
复制代码

======================================
原因
在使用Gradle编译的时候,编译内存不足导致。
解决方法
在项目的根目录中进行修改。修改gradle.properties,
set org.gradle.jvmargs=-Xmx2048M。
修改后该问题得已解决。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, 2025-12-14 18:51 , Processed in 0.013909 second(s), 9 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表