2

我目前正在 Ubuntu 10.04 64 位上构建 SE Android 4.2.1_r1。我几乎完成了制作过程,但我目前陷入以下错误。

Install: out/host/linux-x86/framework/commons-cli-1.2.jar
host Prebuilt: commons-codec-1.4 (out/host/common/obj/JAVA_LIBRARIES/commons-codec-   
1.4_intermediates/javalib.jar)
Notice file: prebuilts/tools/common/http-client/NOTICE -- out/host/linux
x86/obj/NOTICE_FILES/src//framework/commons-codec-1.4.jar.txt
Install: out/host/linux-x86/framework/commons-codec-1.4.jar
host Prebuilt: commons-compress-1.0 (out/host/common/obj/JAVA_LIBRARIES/commons
compress-1.0_intermediates/javalib.jar)
Notice file: prebuilts/tools/common/commons-compress/NOTICE -- out/host/linux
x86/obj/NOTICE_FILES/src//framework/commons-compress-1.0.jar.txt
Install: out/host/linux-x86/framework/commons-compress-1.0.jar
host Prebuilt: commons-logging-1.1.1 (out/host/common/obj/JAVA_LIBRARIES/commons
logging-1.1.1_intermediates/javalib.jar)
Notice file: prebuilts/tools/common/http-client/NOTICE -- out/host/linux
x86/obj/NOTICE_FILES/src//framework/commons-logging-1.1.1.jar.txt
Install: out/host/linux-x86/framework/commons-logging-1.1.1.jar
Notice file: libcore/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/core
hostdex.jar.txt
host Prebuilt: tzdata-host (out/host/linux-x86/obj/ETC/tzdata-host_intermediates/tzdata)
Install: out/host/linux-x86/usr/share/zoneinfo/tzdata
Install: out/host/linux-x86/framework/core-hostdex.jar
Notice file: external/junit/NOTICE -- out/host/linux
x86/obj/NOTICE_FILES/src//framework/core-junit-hostdex.jar.txt
Install: out/host/linux-x86/framework/core-junit-hostdex.jar
host Java: sqlite-jdbc-host (out/host/common/obj/JAVA_LIBRARIES/sqlite-jdbc
host_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
make: *** No rule to make target `out/host/common/obj/JAVA_LIBRARIES/mockwebserver
hostdex_intermediates/javalib.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/core-   
tests-hostdex_intermediates/classes-full-debug.jar'.  Stop.

我试图用谷歌搜索我的错误,但我不确定是否有人实际成功构建了 SE Android 4.2.1。目录 mockwebserver-hostdex_intermediates 不存在。

任何帮助,将不胜感激。

4

4 回答 4

1

我在从 Master repo 编译 Android-4.2.1 时遇到了同样的问题,所以我怀疑这不是 SEandroid 的问题。大约两天前,我在具有相同配置的同一 VM 中成功编译了 SEandroid(午餐全英)。

我找不到与此问题相关的任何信息,只有少数人遇到相同问题但没有任何解决方案。

于 2013-01-22T11:41:32.127 回答
1

找到了摆脱错误的方法。

在 libcore/JavaLibrary.mk(第 155 行)中,将 mockwebserver-hostdex 更改为 mockwebserver-host

这是 AOSP 中的一个错误。在他们修复它之前,这将起作用。

来源(在其中一条评论中):https ://groups.google.com/forum/#!msg/android-building/o8Qg4CVrN70/fR0OOu9xAZcJ

于 2013-01-22T18:11:05.743 回答
0

只要确保你安装了 OpenJDK 7 并且你完成了。

从这里安装 OpenJDK 7:https ://stackoverflow.com/a/16263651/3621912

于 2017-01-03T16:53:14.893 回答
0

看起来像是 JDK 的问题和不正确的环境设置。确保您已为 Android KK [Java JDK6] 安装了正确的 JDK。我在 Android Lollipop 中遇到的类似问题。

于 2016-07-22T07:01:58.077 回答