简体   繁体   中英

No emulator after building Android kernel

I followed the directions from http://source.android.com/source/building.html . However once I get to "Emulate an Android Device" section, there is no "emulator".

During the build, I got Killed messages:

/bin/bash: line 1: 5372 Killed javac -J-Xmx512M -target 1.5 -Xmaxerrs >9999999 -encoding ascii -g -classpath out/host/linux-x86/framework/dx.jar:out /host/linux->x86>/framework/dasm.jar:out/host/linux-x86/framework/cfassembler.jar:/usr/lib /jvm/java-1.5.0>-sun/lib/tools.jar -extdirs "" -d out/host/common/obj/JAVA_LIBRARIES /cts-dalvik-buildutil_intermediates/classes \\@out/host/common/obj/JAVA_LIBRARIES/cts-dalvik- buildutil_intermediates/java-source-list-uniq make: * [out/host/common/obj/JAVA_LIBRARIES/cts-dalvik-buildutil_intermediates/javalib.jar] Killed

This is the first javac command that follows the C++ compilations. I've retried it multiple times without success.

The problem resulted from paths not being properly exported. I followed this link: http://blog.markloiseau.com/2012/07/envsetup-setpaths-and-the-emulator-avd-error/

and set ANDROID_PRODUCT_OUT=/out/target/product/generic/ and also emulator is located at out/host/linux-x86/bin/emulator

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM