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

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

解决方法


source build/envsetup.sh

lunch sdk-eng
执行:

4.运行emulator


可以启动模拟器

5.模拟器启动图片


编译android源码6---运行android编译源码_第1张图片


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









你可能感兴趣的:(源码,android,ubuntu)