2012-10-18 140 views
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它的工作原理是应用,但它不是由在AVD的喜好将其设置为关闭或加入-gpu off来工作API 15和16

+0

你在虚拟机上运行它吗? –

回答

1

禁用GPU仿真命令行

+0

尝试过但不能正常工作.. –

0

转到您的AVD管理器,选择你要使用和更改目标下拉到AVD“谷歌的API(谷歌公司) - API级别16”。然后保存并重新启动。

+0

如果您没有看到“Google API(Google Inc.) - API Level 16”,您将需要使用SDK管理器下载它。 – petey

+0

是的,我已经做到了这一点,但没有为我工作。我在我的系统和512 MB 9600GT显卡上安装了igb ram。所以这可能是因为内存很低。 –

+0

哦,是的,你需要为你的电脑购买莫尔RAM。 – petey

7

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

7

好吧我知道这对你来说太晚了,但它可能会帮助其他人,我尝试了所有的解决方案,但没有工作我

谷歌使我在这里 http://code.google.com/p/android/issues/detail?id=33336 给出的解决方案为许多,但不适合我。我包括在这里,因为也许你会帮助

openGL的在错误的文件夹: \工具,而不是\工具\ LIB 将以下文件复制到Tools文件夹

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

但是使用“扎卡里的技术”在文章 结束对于那些谁不能得到这个工作。 进入Process Monitor(http://technet.microsoft.com/en-us/sysinternals/bb896645)。添加过滤器“程序名称” +“包含” +“仿真”: *启动捕获 *火起来的模拟器 *等到你失败的消息 *停止捕获

搜索(CTRL + f)捕获未能加载的其中一个DLL,如“libOpenglRender”。您可能会看到多次尝试在多个目录中查找此文件,结果为“NAME NOT FOUND”或“PATH NOT FOUND”。

使用这个,我发现我有一个问题与atiglpxx.dll

我看着我的显示适配器在我的Windows设备管理器,在我的情况下,ATI的Radeon Modility HD 2400 XT从AMD http://support.amd.com/us/psearch/Pages/psearch.aspx?type=2.4.2&product=2.4.2.3.15&contentType=GPU+Download+Detail&ostype=Windows+8+-+32-Bit+Edition&keywords=&items=20

下载的驱动程序

一旦我安装,我不再得到了“不能让wglGetExtensionsStringARB”消息

+0

对我来说,将文件复制到\ tools文件夹中的确很神奇。谢谢(你的)信息 – Akshay

0

你玩弄你的Android设备的规格一样RAN,堆和其他规范。

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