This is a cache of https://discuss.96boards.org/t/android-build-error/967. It is a snapshot of the page at 2024-11-01T04:36:13.879+0000.
Android BUILD ERROR - HiKey - 96Boards Forum

Android BUILD ERROR

On my mac, I install ubuntu 16.04 by vagrant. However, when I run make Android 7.0, the following error happens.

Is there any suggestion or advise for me?

Thanks

ninja: Entering directory `.’ [ 0% 39/34804] host Java: ahat (out/ho…A_LIBRARIES/ahat_intermediates/classes Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. [ 0% 53/34804] Generating TOC: out/tar…/core-all_intermediates/classes.jar.to FAILED: /bin/bash -c “(out/host/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp ) && (if cmp -s out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc ; then rm out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp ; else mv out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc ; fi )” output_length=16459012 Unable to open output file out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp: Invalid argument /bin/bash: line 1: 13460 Aborted (core dumped) ( out/host/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp ) ninja: build stopped: subcommand failed. build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed make: *** [ninja_wrapper] Error 1

Hi,

It’s hard to say without knowing which instructions you followed and the exact commands you used.
Preferably you should be following the instructions here in order:
https://source.android.com/source/initializing.html
https://source.android.com/source/downloading.html
https://source.android.com/source/devices.html