我目前正在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不存在。
任何帮助都将不胜感激。
答案 0 :(得分:1)
我有同样的问题从Master repo编译Android-4.2.1所以我怀疑这不是SEandroid的问题。大约两天前,我在同一个配置相同的VM中成功编译了SEandroid(午餐all-eng)。
我找不到与此问题相关的任何信息,只有少数人遇到相同问题但没有任何解决方案。
答案 1 :(得分:1)
找到摆脱错误的方法。
在libcore / JavaLibrary.mk(第155行)中,将mockwebserver-hostdex更改为mockwebserver-host
这是AOSP中的一个错误。在他们解决之前,这将有效。
来源(在其中一条评论中):https://groups.google.com/forum/#!msg/android-building/o8Qg4CVrN70/fR0OOu9xAZcJ
答案 2 :(得分:0)
看起来像JDK的问题和不正确的环境设置。确保已为Android KK [Java JDK6]安装了适当的JDK。我在Android Lollipop中遇到的类似问题。
答案 3 :(得分:0)
确保安装了OpenJDK 7并完成了。
从这里安装OpenJDK 7:https://stackoverflow.com/a/16263651/3621912