3

我已经使用 api 16 创建了一个与地图相关的应用程序,一旦运行此应用程序就会弹出此错误。

      [2012-10-18 20:05:26 - Maps] Android Launch!
      [2012-10-18 20:05:26 - Maps] adb is running normally.
      [2012-10-18 20:05:26 - Maps] Performing com.example.maps.MainActivity activity launch
      [2012-10-18 20:05:29 - Maps] Launching a new emulator with Virtual Device 'andi'
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] Failed to create Context 0x3005
      [2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
      [2012-10-18 20:05:38 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
      [2012-10-18 20:05:38 - Emulator] emulator: WARNING: Requested RAM size of 1024MB is too large for your environment, and is reduced to 768MB.
      [2012-10-18 20:05:38 - Emulator] Failed to allocate memory: 1455
      [2012-10-18 20:05:38 - Emulator] 
      [2012-10-18 20:05:38 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
      [2012-10-18 20:05:38 - Emulator] Please contact the application's support team for more information.

当我使用 api 14 运行此应用程序时,它可以工作,但不能在 api 15 和 16 上工作

4

6 回答 6

7

我将虚拟设备的 VM 堆更改为更高的值 - 这为我解决了崩溃问题。现在的值是:10.1" WXGA 1280 x 800,Android 4.1.2,Intel Atom,Ram 1024,VM Heap 128,内部存储 300 MB,SD 300 MB 此外,我在 eclipse 中更改了内存的启动设置。 ini,但我不确定这是否与问题有关。

于 2012-11-28T08:29:57.140 回答
7

好的,我知道这对您来说为时已晚,但它可能对其他人有所帮助。我尝试了所有给出的解决方案,但没有一个对我有用

谷歌把我带到这里 http://code.google.com/p/android/issues/detail?id=33336 给出的解决方案适用于许多人,但不适用于我。我把它包括在这里,因为也许对你有帮助

openGL 在错误的文件夹中: \tools 而不是 \tools\lib 将以下文件复制到工具文件夹:

libEGL_translator.dll
libGLES_CM_translator.dll
libGLES_V2_translator.dll
libOpenglRender.dll

然而,在帖子末尾使用“Zachary 的技术”对于那些无法完成这项工作的人。去获取进程监视器(http://technet.microsoft.com/en-us/sysinternals/bb896645)。为“进程名称”+“包含”+“模拟器”添加过滤器:* 开始捕获 * 启动模拟器 * 等到收到失败消息 * 停止捕获

搜索 (ctrl + f) 捕获无法加载的 dll 之一,例如“libOpenglRender”。您可能会看到多次尝试在多个目录中定位此文件,结果是“未找到名称”或“未找到路径”。

使用这个我发现我遇到了 atiglpxx.dll 的问题

我在我的 Windows 设备管理器上查看了我的显示适配器,并从 AMD http://support.amd.com/us/psearch/Pages/psearch.aspx?type=2.4下载了我的 ATI Modility Radeon HD 2400 XT 驱动程序.2&product=2.4.2.3.15&contentType=GPU+Download+Detail&ostype=Windows+8+-+32-Bit+Edition&keywords=&items=20

安装后,我不再收到“无法获取 wglGetExtensionsStringARB”消息

于 2013-01-30T14:06:37.253 回答
1

Disable GPU emulation by setting it to off in the AVD preferences or by adding -gpu off to command line

于 2012-10-18T14:49:58.110 回答
0

转到您的 AVD 管理器,选择您尝试使用的 AVD,然后将 Target 下拉列表更改为“Google APIs (Google Inc.) - API Level 16”。然后保存并重新启动。

于 2012-10-18T15:01:44.277 回答
0

也许,您的应用程序需要 OpenGL 2.0,模拟器直到最近才支持它。

Android OpenGL ES 2.0 模拟器 检查此链接

于 2012-10-18T14:51:41.970 回答
0

您必须使用您的 android 设备规范,如 RAN、Heap 和其他规范。

很难告诉你哪个必须设置为什么。在我的情况下,我将 RAM 设置为 512 和堆 128 以使其工作。

于 2013-07-20T00:43:28.113 回答