To run the compiled image of Android
http://blog.csdn.net/super005/article/details/6968589
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
export ANDROID_SWT=~/WORKING_DIRECTORY/out/host/linux-x86/framework
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
目前的解决方式是设置ANDROID_BUILD_TOP环境变量:
如:export ANDROID_BUILD_TOP=/home/WORKING_DIRECTORYemulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
jelly bean(adnroid4.1.1)下emulator不能直接运行的问题(我用的是4.2的也不行)
在Android 2.3下只要设置了ANDROID_PRODUCT_OUT环境变量emulator就可以使用了,但是在android 4.1下就不能使用了
只有刚刚make结束的时候的终端可以直接运行,新开一个终端就不行了,出现以下提示:
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
目前的解决方式是设置ANDROID_BUILD_TOP环境变量:
如:export ANDROID_BUILD_TOP=/home/WORKING_DIRECTORY
4.0
设置环境变量
export PATH=$PATH:/home/WORKING_DIRECTORY/out/host/linux-x86/bin
export ANDROID_PRODUCT_OUT=/home/WORKING_DIRECTORY/out/target/product/generic
export ANDROID_SWT=/home/WORKING_DIRECTORY/out/host/linux-x86/framework
export ANDROID_BUILD_TOP=/home/WORKING_DIRECTORY
再执行
emulator -system system.img -data userdata.img -ramdisk ramdisk.img