编译android源码6---运行android编译源码

来源:互联网 发布:linux 查看系统时区 编辑:程序博客网 时间:2024/06/05 18:00

1.配置环境变量 (/media/M_hM_=M_M_dM__M_6/Download/442为android所在的目录)

export PATH=$PATH:/media/M_hM_=M_M_dM__M_6/Download/442/out/host/linux-x86/bin

export ANDROID_PRODUCT_OUT=/media/M_hM_=M_M_dM__M_6/Download/442/out/target/product/generic

2.运行模拟器 emulator

3.错误

emulator: ERROR: You did not specify a virtual device name, and the systemdirectory 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

解决方法


source build/envsetup.sh

lunch sdk-eng
执行:

4.运行emulator


可以启动模拟器

5.模拟器启动图片




官网:http://source.android.com/source/running.html








0 0