我收到内部编译器错误

时间:2017-03-02 04:04:48

标签: android compilation server android-jack-and-jill

[ 34% 16888/49032] Building with Jack:...l_intermediates/with-
local/classes.dex
FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/core-
all_intermediates/with-local/classes.dex.rsp
java.lang.AssertionError
at com.android.sched.scheduler.MultiWorkersScheduleInstance.process(MultiWorkersScheduleInstance.java:523)
at com.android.jack.Jack.run(Jack.java:738)
at com.android.jack.Jack.checkAndRun(Jack.java:412)
at com.android.jack.CommandLine.runJack(CommandLine.java:79)
at com.android.jack.api.v01.impl.Cli01CompilationTaskImpl.run(Cli01CompilationTaskImpl.java:85)
at com.android.jack.server.tasks.JackTask.handle(JackTask.java:168)
at com.android.jack.server.tasks.SynchronousServiceTask.handle(SynchronousServiceTask.java:49)
at com.android.jack.server.tasks.JackTask.handle(JackTask.java:55)
at com.android.jack.server.router.PathRouter.handle(PathRouter.java:65)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:84)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:84)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.MethodRouter.handle(MethodRouter.java:67)
at com.android.jack.server.router.RootContainer.handle(RootContainer.java:49)
at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Internal compiler error (version 1.2-rc4 'Carnac' (298900 
f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-
team@google.com)).
Warning: This may have produced partial or corrupted output.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

我在编译使用jack服务器编译ROM时遇到了这些错误。我正在尝试为我的设备编译AOSP RoM。 请帮我解决这个问题。

2 个答案:

答案 0 :(得分:0)

我遇到了类似的错误,谷歌搜索它发给我here

我的机器有4个处理核心但只有4GB的RAM,所以我规定只在我导出的ANDROID_JACK_VM_ARGS变量上使用-Xmx3g以及编辑我的〜/ .jack-server / config.properties文件以减少最大服务参数从4到1。

也许尝试这些更改并查看它是否有帮助?

答案 1 :(得分:0)

创建一个15G交换文件。 Google指示如何在Linux上执行此操作...

糟糕,这是内部编译器错误。您要么中断了构建,导致损坏,要么之前的内存不足情况也是如此。最好的解决方案是做一些破坏或清理并从头开始。您也可以尝试手动删除Jack正在构建的java中间件,但我更喜欢前者。首先使用交换文件...