android源码编译后如何用emulator启动
2015-06-17 15:18
459 查看
源码编译完后:
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
可尝试使用source /build/envsetup.sh命令后在执行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了。
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
可尝试使用source /build/envsetup.sh命令后在执行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如何编程设置APP安装位置(外部存储或内部存储)?
- Android应用Activity、Dialog、PopWindow、Toast窗口添加机制及源码分析
- Android 软键盘控制弹出(很好使,自己写的,绝对能用)
- Android最佳性能实践(一)——合理管理内存
- Android问题集锦之四十三:UnsatisfiedLinkError: Cannot load library: reloc_library[1285]: 104 cannot locate
- Android SDK、开发工具下载镜像服务器推荐,再也不用担心被墙了
- 发现一个很好的mac和android手机文件互传的工具
- android xml 资源文件中几个格式(@ ? @* @+)的含义
- android 代码片段,实现60秒倒计时
- mx4下android程序的调试
- Android Loader机制 源码笔记(2)
- android listview 异步加载图片并防止错位
- android5.0(Lollipop) BLE Peripheral深入理解系统篇之初体验
- android学习——MeasureSpec介绍及使用
- Android Gradle
- Android Studio中几个非常有用的工具
- Android实现用户引导界面
- 【Some】【WebSite】Fun with Android Shaders and Filters
- 【Some】【WebSite】Fun with Android Shaders and Filters
- 【Some】【WebSite】Fun with Android Shaders and Filters