2014-08-27 94 views
0

我想在Java操作系统10.9.4上用java版本1.6编译AOSP 4.4.4。当我编译make -j4 for emulator时出现以下错误。在Mac OS X上的Android 4.4构建失败10.9.4

Export includes file: external/zlib/Android.mk -- out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/export_includes 
Import includes file: out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/import_includes 
Import includes file: out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_intermediates/import_includes 
make: *** No rule to make target `out/target/product/generic/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by **`out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'. Stop.** 
make: *** Waiting for unfinished jobs.... 
Export includes file: system/core/libnetutils/Android.mk -- out/target/product/generic/obj/SHARED_LIBRARIES/libnetutils_intermediates/export_includes 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 

我们可以用java 1.6编译aosp 4.4吗?这个问题与java有关吗?

+0

对“libwpa_client_intermediates”的网络搜索会调查相同错误消息的人员在不同位置调出多个线程。 – 2014-08-27 16:57:52

+1

@ChrisStratton感谢您回复。我在网上查找,但没有列出清楚的解决方案,而不是在stackoverflow中。所以我试图在这里发布,所以我们将有一个源代码问题的参考 – ChanChow 2014-08-27 20:25:00

回答

1

我想出了解决方案。 Mac OS 10.9附带的Xcode 5.1与AOSP4.4.4不兼容。尝试通过删除Xcode应用程序并安装旧版本来降级它。在我的情况下,我为Mac 10.9安装了Xcode 4.6,并且工作正常。

+1

你是怎么知道Xcode是问题的?我有相同的,但在Ubuntu(无Xcode)... – Matthieu 2017-01-01 13:56:11

+0

我刚刚解决了类似的问题。因为我错误地设置了'WPA_SUPPLICANT_VERSION:= VER_0_8_x'(小写字母“x”),所以'libwpa_client'没有被建立。这阻止了libwpa_client在一个makefile('wpa_supplicant_8/Android.mk')中由于版本检查失败而生成,但是一个依赖项(netd)只关心定义了“WPA_SUPPLICANT_VERSION”,所以它不被满足。我确定每种情况都不一样,但挖掘makefile可能会有所帮助。 – remicles2 2017-06-20 23:59:20

+0

还有一点需要注意:如果makefiles设置为定义LOCAL_MODULE = libwpa_client,则应该建立'libwpa_client_intermediates'。这个技巧来自这篇文章: https://groups.google.com/d/msg/android-building/3Bb_Cq5U-MY/JOXj4N6e1d4J “看起来你同步的代码没有定义libwpa_client模块。 In一个股票AOSP 4.2.2树,该模块应该在 external/wpa_supplicant_ {6,8}之一中定义。请注意,如果$(WPA_SUPPLICANT_VERSION) 未设置为受支持的值,则不会包含这些树中的任何一个 (查看每个目录中的顶级Android.mk)......“ – remicles2 2017-06-21 00:01:52