android 编译问题
[ 0% 18/16801] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/dex-dir/classes.dex
FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/dex-dir/classes.dex.rsp
Out of memory error (version 1.2-a26 'Carnac' (291201 fcd657165d2fd6dcf1bf4c3002c9c8f75383e815 by android-jack-team@google.com)).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 0% 18/16801] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/android-ex-camera2-utils_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:142: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
恳请各位高手相助,谢谢(那个-Xmx<size>已经修改了,没什么用)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试在gradle配置里,添加这么一段
删除多余JDk,使用openJDK7 修改JVM heap大小,我遇到这个问题时是这么解决的。