android源码编译后如何用emulator启动

源码编译完后:

root@hhw:/opt/Embedsky/android-4.3_r1# export ANDROID_BUILD_TOP=/opt/Embedsky/android-4.3_r

root@hhw:/opt/Embedsky/android-4.3_r1# export ANDROID_PRODUCT_OUT=/opt/Embedsky/android-4.3_r1/out/target/product/generic
root@hhw:/opt/Embedsky/android-4.3_r1# export PATH=$PATH:/opt/Embedsky/android-4.3_r1/out/host/linux-x86/bin

只需要这三句就OK

运行时只要:emulator

Android4.1.1系统编译全过程



  若运行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


可尝试使用source /build/envsetup.sh命令后在执行emulator命令

完美运行:

Android4.1.1系统编译全过程

下面是遇到的问题,可以看看:

编译完系统后,用模拟器运行系统,在2.3之前只需要配置:

export Android_PRODUCT_OUT=/home/hudan/android/source/android4.1.1/out/target/product/generic_x86

export PATH=$PATH:/home/hudan/android/source/android4.1.1/out/host/linux-x86/bin

但这样配置就一直出现如下的错误:

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

Android4.1.1系统编译全过程

这就是adnroid4.1.1下emulator不能直接运行的问题

参考:http://www.linuxidc.com/Linux/2012-09/69492.htm

最后配置export ANDROID_BUILD_TOP=/home/hudan/android/source/android4.1.1

一切就都OK了。

Android4.1.1系统编译全过程
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值