2012-08-10 92 views
22

我的AVD模拟器没有运行后,我改变我的硬盘到其他母板i5 3GHz处理器,无需重新安装操作系统。模拟器未运行

操作系统:Ubuntu 10.10

我的模拟器没有运行通过eclipse。当我点击Run As .. Android应用程序。

然后我尝试运行通过命令提示符,然后显示如下错误。

[email protected]:~$ emulator -avd JellyBelly 
Failed to create Context 0x3005 
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. 
Segmentation fault 

如何解决此错误以运行模拟器?

编辑:使用模拟器-avd JellyBelly -verbose

[email protected]:~$ emulator -avd JellyBelly -verbose 
emulator: found SDK root at /home/padmakumar/android-sdk 
emulator: Android virtual device file at: /home/padmakumar/.android/avd/JellyBelly.ini 
emulator: virtual device content at /home/padmakumar/.android/avd/JellyBelly.avd 
emulator: virtual device config file: /home/padmakumar/.android/avd/JellyBelly.avd/config.ini 
emulator: using core hw config path: /home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini 
emulator: Found AVD target API level: 16 
emulator: found skin 'WXGA800-7in' in directory: /home/padmakumar/android-sdk/platforms/android-16/skins 
emulator: autoconfig: -skin WXGA800-7in 
emulator: autoconfig: -skindir /home/padmakumar/android-sdk/platforms/android-16/skins 
emulator: found skin-specific hardware.ini: /home/padmakumar/android-sdk/platforms/android-16/skins/WXGA800-7in/hardware.ini 
emulator: keyset loaded from: /home/padmakumar/.android/default.keyset 
emulator: trying to load skin file '/home/padmakumar/android-sdk/platforms/android-16/skins/WXGA800-7in/layout' 
emulator: skin network speed: 'full' 
emulator: skin network delay: 'none' 
emulator: autoconfig: -kernel /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//kernel-qemu 
emulator: autoconfig: -ramdisk /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//ramdisk.img 
emulator: Using initial system image: /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
emulator: autoconfig: -data /home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
emulator: autoconfig: -initdata /home/padmakumar/.android/avd/JellyBelly.avd/userdata.img 
emulator: autoconfig: -cache /home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
emulator: autoconfig: -sdcard /home/padmakumar/.android/avd/JellyBelly.avd/sdcard.img 
emulator: Physical RAM size: 1024MB 

Content of hardware configuration file: 
    hw.cpu.arch = arm 
    hw.cpu.model = cortex-a8 
    hw.ramSize = 1024 
    hw.screen = touch 
    hw.mainKeys = no 
    hw.trackBall = yes 
    hw.keyboard = no 
    hw.keyboard.lid = no 
    hw.keyboard.charmap = qwerty2 
    hw.dPad = yes 
    hw.gsmModem = yes 
    hw.gps = yes 
    hw.battery = yes 
    hw.accelerometer = yes 
    hw.audioInput = yes 
    hw.audioOutput = yes 
    hw.sdCard = yes 
    hw.sdCard.path = /home/padmakumar/.android/avd/JellyBelly.avd/sdcard.img 
    disk.cachePartition = yes 
    disk.cachePartition.path = /home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
    disk.cachePartition.size = 66m 
    hw.lcd.width = 800 
    hw.lcd.height = 1280 
    hw.lcd.depth = 16 
    hw.lcd.density = 213 
    hw.lcd.backlight = yes 
    hw.gpu.enabled = no 
    hw.camera.back = emulated 
    hw.camera.front = none 
    vm.heapSize = 48 
    hw.sensors.proximity = yes 
    hw.sensors.magnetic_field = yes 
    hw.sensors.orientation = yes 
    hw.sensors.temperature = yes 
    kernel.path = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//kernel-qemu 
    kernel.parameters = android.checkjni=1 
    disk.ramdisk.path = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//ramdisk.img 
    disk.systemPartition.initPath = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
    disk.systemPartition.size = 200m 
    disk.dataPartition.path = /home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
    disk.dataPartition.size = 201m 
    avd.name = JellyBelly 
. 
QEMU options list: 
emulator: argv[00] = "/home/padmakumar/android-sdk/tools/emulator-arm" 
emulator: argv[01] = "-android-hw" 
emulator: argv[02] = "/home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini" 
Concatenated QEMU options: 
/home/padmakumar/android-sdk/tools/emulator-arm -android-hw /home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini 
emulator: registered 'boot-properties' qemud service 
emulator: nand_add_dev: system,size=0xc800000,initfile=/home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
emulator: mapping 'system' NAND image to /tmp/android-padmakumar/emulator-IM8Usk 
emulator: rounding devsize up to a full eraseunit, now c810000 

emulator: nand_add_dev: userdata,size=0xc900000,file=/home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
emulator: rounding devsize up to a full eraseunit, now c918000 

emulator: registered 'boot-properties' qemud service 
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m' 
emulator: Adding boot property: 'qemu.sf.lcd_density' = '213' 
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0' 
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back' 
emulator: nand_add_dev: cache,size=0x4200000,file=/home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
emulator: Initializing hardware OpenGLES emulation support 
Failed to create Context 0x3005 
emulator: Can't start OpenGLES renderer? 
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. 
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2 
Segmentation fault 

编辑:不管模拟器我创建没有运行。

+1

运行此命令AVD'模拟器-avd JellyBelly -verbose'和使用输出更新帖子,还要确保已经安装了GPU的驱动程序。 – user827992 2012-08-10 13:35:40

回答

3

你可能丢失了一个与GLES库仿真器的链接,确保在

<Android SDK root>/tools/lib 

你有这样的.so文件

libEGL_translator.so  
libGLES_CM_translator.so  
libGLES_V2_translator.so  
libOpenglRender.so 

则必须将此文件添加到全球一套为您的操作系统库,您可以从一个特定的路径添加库只做以下几点:

  • sudo gedit /etc/ld.so.conf.d/androidGL.conf
  • 只写的路径,在此文件库,你的情况<Android SDK root>/tools/lib,只是一个路径,不指定任何库,在路径中的所有库将被自动收集
  • 保存并关闭gedit
  • 更新全局库文件集添加新路径sudo ldconfig

现在重新尝试运行您的avd。

+0

我做过但没有效果。我想重新启动我的电脑吗? – 2012-08-10 14:26:55

+0

@PadmaKumar好的,试试看。 – user827992 2012-08-10 14:28:05

+0

@PadmaKumar也'模拟器-avd JellyBelly -gpu on'和'模拟器-avd JellyBelly -gpu off' – user827992 2012-08-10 14:31:47

-1

试试这个:

  1. 打开AVD管理
  2. 点击JellyBelly AVD
  3. 单击编辑
  4. 变化 '硬件' 部分的价值和保存

尝试启动它,让我们知道它是怎么回事

+0

所有模拟器都没有运行,我从所有api级别创建。 – 2012-08-14 09:14:31

+0

与开始现有的avd相比,当您创建新的AVD并尝试启动它时发生了什么? – 2012-08-14 09:23:59

+0

我试过这个,但同样没有进展。 – 2012-08-14 09:53:31

1

您将不得不再次设置所有环境变量路径值。如果您使用安装程序文件安装sdk,则可能需要重新安装它,因为它与操作系统有一定的依赖关系。

8

实际上,当您将ADT和SDK升级到第20版时会发生这种情况...... 很多人都会遇到这种情况,但解决方法是您必须启动“emulator-arm”而不是“emulator”...可能是它的作品... 和更多的细节可以参考http://code.google.com/p/android/issues/detail?id=34233此链接...

+5

截至今天仍在开发 – 2013-08-23 11:15:27

+0

我能够通过AVD管理器运行它。但是从命令提示符总是看到一个空白屏幕。使用emulator64-arm而不是仿真器工作。由于 – 2013-11-06 07:12:09

3
Failed to create Context 0x3005 
emulator: Can't start OpenGLES renderer? 

通常当你的模拟器大小超出范围进行比较,以你的操作系统支持GL驱动这种事情发生。

尝试根据您的屏幕尺寸缩放您的模拟器并监视dpi。

希望它会有所帮助。

7

我有同样的问题

编辑您的AVD GUI设置。 硬件部分,选择新建。 点击“属性”下拉菜单 选择“GPU仿真”,然后点击“确定” 使用硬件部分的下拉菜单将“Gpu Emulation”更改为“YES”。

保存并重试

+7

没有为我的不同,对不起 – 2012-10-16 08:45:04

+0

我有和后约5屏幕到平板电脑应用程序我总是使用主机GPU:渲染错误:无法创建/调整pbuffer,而这种和仿真器停止运行应用正常。把它关掉,模拟器变黑,没用。通过手机上的主机GPU,它可以正常工作。不同的决议;所以,似乎主机GPU不是解决方案。顺便说一句,总是得到“失败”的消息,因为UpdateCheck试图做的东西,它不能在网络上。 – maxweber 2016-02-08 13:02:57

2

我也有这个问题。我的症状:

  1. 我可以启动Android会议
  2. 的Eclipse,然后显示在上面的错误
  3. 我使用Windows Vista,Android SDK中20和Eclipse 4.2.0

实际的问题是相当直截了当(注意我有GPU模拟器=是)。事实证明,Eclipse无法看到Android会话!

http://www.linkedin.com/groups/Problem-in-executing-code-on-86481.S.138513463

因此我发现

Android Emulator starts but Eclipse doesn't recognize it

重启动ADB服务器和鲍勃在手你的叔叔(也。重新启动Eclipse)的解决方案!

我希望能帮助别人。

0

如果您使用Windows 8 64位英特尔处理器和NVidia图形卡,您应该安装Windows更新。 具体来说:GForce的NViDIA驱动程序更新和HD Graphics的intel公司驱动程序更新。

+1

从他正在使用的操作系统,你可以看到这个问题:“操作系统:Ubuntu的10.10” – xhochy 2012-10-28 09:04:47

0

没有什么可担心的这个错误你是不是根据平台只是要对它进行适当的意志您展示一个例子

1 -Android 2.2创建AVD,
2 -API 8级, 3 -SDCard 1024

肯定会工作只是使其根据平台!

+0

干草我只是试图在许多方面。实际上我的AVD模拟器没有运行后,我改变了我的硬盘。 – 2012-11-30 14:15:10

+0

HIII库马尔发邮件给我没什么可担心刚刚发给我的整个的解释...很快就要 – user1576593 2012-12-03 21:16:12

+0

干草Zohiaib回复你,其实我的问题修正通过更新我的操作系统。我在上述问题中解释的每一件事,我都没有电子邮件发送相同的内容。谢谢你的帮助。 – 2012-12-04 07:51:34

3

更改屏幕(增加)。那奏效了,因为我在和Windows 8的x64的这个问题我

0

的分辨率。确保你安装了适合你显卡的正确驱动程序。我安装了正确的驱动程序后错误消失了。

0

我所做的解决这个问题是:

    从AVD经理
  1. 移除的设备
  2. 创建虚拟设备再次