android 4.0.1源码编译成功后运行emulator提示No command 'emulator' found

emulator
No command 'emulator' found, did you mean:
 Command 'qemulator' from package 'qemulator' (universe)
emulator: command not found

1、编辑/etc/environment增加emulator所在目录(增加蓝色字体内容):

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-1.6.0_27/bin:/home/test1/WORKING_DIRECTORY/out/host/linux-x86/bin"
CLASSPATH="/usr/lib/jvm/java-1.6.0_27/lib"
JAVA_HOME="/usr/lib/jvm/java-1.6.0_27"
ANDROID_PRODUCT_OUT="/home/test1/WORKING_DIRECTORY/out/target/product/generic"

注意:修改这个后为使之生效需要logout一下。

 

另外,android模拟器第一次启动时间超长,需要耐心等待。

你可能感兴趣的:(android,command,Path)