我试图在Android-hive的教程中运行一个示例。
示例是AndroidBuildMusicPlayer 我成功启动了应用程序的模拟器,但当我点击模拟器中的应用程序图标时,它给了我这个错误,
“遗憾的是,应用已停止工作”
在CONSOLE中:
[2014-08-31 19:55:25 - AndroidBuildingMusicPlayer] Dx
trouble writing output: already prepared
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] ------------------------------
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] Android Launch!
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] adb is running normally.
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] Performing com.androidhive.musicplayer.AndroidBuildingMusicPlayerActivity activity launch
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] Automatic Target Mode: launching new emulator with compatible AVD 'Test'
[2014-08-31 19:55:26 - AndroidBuildingMusicPlayer] Launching a new emulator with Virtual Device 'Test'
[2014-08-31 19:56:39 - Emulator] Failed to create Context 0x3005
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] could not get wglGetExtensionsStringARB
[2014-08-31 19:56:39 - Emulator] Warning: No DNS servers found
答案 0 :(得分:0)
您可以尝试修复此错误(其中一个可以解决问题)
增加模拟器Eclipse->Window->Android Virtual Device Manager->From the list of emulator, choose your emulator->Click on Edit->And Check Memory Option-> here Increase your Emulator RAM Size
的RAM。建议避免分配超过850MB,因为这可能会使您的模拟器失速。重新启动模拟器,然后重试
更新英特尔图形驱动程序:http://www.intel.com/p/en_US/support/detect/graphics(通过Internet Exporer访问)