Search code examples
androidandroid-source

Android 4.4 build fails on mac OS X 10.9.4


I am trying to compile AOSP 4.4.4 on mac OS 10.9.4 with java version 1.6. I get the following error when I compile make -j4 for emulator.

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.

Can we use java 1.6 for compiling aosp 4.4? Is the problem related to java?


Solution

  • I figured out the solution. Xcode 5.1, which comes with Mac OS 10.9, is not compatible with AOSP4.4.4. Try to downgrade it by deleting the Xcode application and installing an older version of it. In my case I installed Xcode 4.6 for Mac 10.9 and it worked.