开发环境: windows 2008 R2 x64, JDK 7u10, ADTv21.0.1-543035

一.启动 Nexus 7 模拟器失败

模拟器启动出现如下错误:

Starting emulator for AVD 'nexus7'
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


网络搜索解决:

来源:http://code.google.com/p/android/issues/detail?id=36080

方法:用命令行启动,指定内存为 512M,默认1024M有问题

c:\xxx>emulator -avd nexus7 -memory 512


二.GUI 响应非常慢

模拟器启动出现如下错误:

Starting emulator for AVD 'nexus7'
emulator: ERROR: Could not load OpenGLES emulation library: Could not load DLL!
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.

界面操作,响应很慢


网络搜索解决:

来源:http://stackoverflow.com/questions/11674306/eclipse-android-emulator-wont-launch

原因是未指定类库地址相关环境变量

方法:添加变量定义:LD_LIBRARY_PATH=/home/xxxx/devel/android-sdk-linux/tools/lib


为此,新建一个批处理来启动模拟器 em.bat,存放在sdk的tools目录下,如下:

setlocal
set LD_LIBRARY_PATH=K:\android\ide\adt-bundle-windows-x86_64\sdk\tools\lib
emulator.exe -avd nexus7 -memory 512 -gpu on


开发中,先用命令行启动模拟器,再在运行调试时,选择当前运行的AVD即可.

更多相关文章

  1. Android的JNI实现基础
  2. widget(1、TextView)
  3. Android进度条源代码
  4. Android内核开发:图解Android系统的启动过程
  5. Android(安卓)Studio 无法打开虚拟机
  6. virtualbox 安装android设置分辨率(自定义)
  7. android圆角矩形的实现
  8. EditText自定义边框
  9. Android中Dialog对话框

随机推荐

  1. 在ajax中接收php多维数组。
  2. 使用Python中的POST将数据发送到PHP
  3. PHP按照 年、月、日创建递归目录
  4. PHP的语言特性-面向对象和C++/java/pytho
  5. 刷新php页面而不重载内容?
  6. 在php中,从字符串中删除逗号后的所有内容
  7. php,检查文本拆分的正确性
  8. 在php中调用父方法的多种方法
  9. centos7 升级php版本
  10. php 正则问题 \s的疑问,求教。。。。