android编译源码生成emulator

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值