网友通过本文主要向大家介绍了android源码编译,如何编译android源码,怎么编译android源码,android源码编译apk,android7.0源码编译等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
编译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 '@' or '-avd ' 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
可以启动模拟器