android源码编译后如何用emulator启动
来源:互联网 发布:sql update数值 编辑:程序博客网 时间:2024/06/06 19:15
源码编译完后:
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
若运行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
完美运行:
下面是遇到的问题,可以看看:
编译完系统后,用模拟器运行系统,在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
这就是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了。
- android源码编译后如何用emulator启动
- 如何用jdk1.6编译android源码
- Android源码编译完重启电脑后emulator命令报错
- android 4.0.1源码编译成功后运行emulator提示No command 'emulator' found
- android 4.0.1源码编译成功后运行emulator提示No command 'emulator' found
- android编译源码生成emulator
- Android Source Code编译后运行emulator
- android: 启动自编译的emulator
- android如何用adb shell启动应用程序
- 如何用Android NDK编译FFmpeg
- [原]如何用Android NDK编译FFmpeg
- 如何用repo下载android源码
- 如何用eclipse查看android 源码
- 如何用源码编译包含有opencl的opencv
- Android源码编译后
- Android源码编译后
- Ubuntu下编译Android源码并运行Emulator
- Android源码下载与编译之emulator与adb
- Red Hat 安装MySQL
- Android应用Activity、Dialog、PopWindow、Toast窗口添加机制及源码分析
- Transaction resolution unknown.
- Android如何编程设置APP安装位置(外部存储或内部存储)?
- shell编程——if语句
- android源码编译后如何用emulator启动
- 浅谈javascript中的prototype
- Xcode运行出错Installation Failed Invalid argument
- MD5解决编码问题
- iOS关于xib关联子view后 用代码无法更改frame的问题
- GPS坐标转换成百度坐标
- 拆分list为固定大小的集合
- 关于SEH(结构化异常处理)的一些知识
- linux断点续传