美文网首页工作生活
在linux下设置emulator环境变量出错

在linux下设置emulator环境变量出错

作者: 宝塔山上的猫 | 来源:发表于2019-06-29 19:05 被阅读0次

在linux下设置emulator环境变量出错

在 ~/.bashrc

添加环境变量:

export ANDROID_PRODUCT_OUT=~/code/android-4.2/out/target/product/generic
export ANDROID_SWT=~/code/android-4.2/out/host/linux-x86/framework/

备注:
重启系统后:

执行emulator,出现如下错误:

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).

Otherwise, follow the instructions in -help-disk-images to start the emulator

在Android源码目录下运行以下命令可解决:

source build/envsetup.sh 
source lunch sdk-eng

然后再执行

emulator

可以启动模拟器

http://blog.csdn.net/yf210yf/article/details/9206269

相关文章

网友评论

    本文标题:在linux下设置emulator环境变量出错

    本文链接:https://www.haomeiwen.com/subject/ortmcctx.html