android - 模拟器未运行 OpenGL 应用程序,消息为 "Unfortunately, OpenGL ES 2.0 Basic has stopped"

标签 android opengl-es android-emulator

我通过the developer site.得到了一个OpenGl的例子

我的问题是它不运行该应用程序。

这是我的日志:

10-17 14:43:12.574: E/Trace(684): error opening trace file: No such file or directory (2)
10-17 14:43:13.523: D/libEGL(684): Emulator without GPU support detected. Fallback to software renderer.
10-17 14:43:13.523: D/libEGL(684): loaded /system/lib/egl/libGLES_android.so
10-17 14:43:13.573: I/Choreographer(684): Skipped 44 frames!  The application may be doing too much work on its main thread.
10-17 14:43:13.643: D/gralloc_goldfish(684): Emulator without GPU emulation detected.
10-17 14:43:13.653: W/dalvikvm(684): threadid=11: thread exiting with uncaught exception (group=0x40a13300)
10-17 14:43:13.653: E/AndroidRuntime(684): FATAL EXCEPTION: GLThread 78
10-17 14:43:13.653: E/AndroidRuntime(684): java.lang.IllegalArgumentException: No configs match configSpec
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
10-17 14:43:14.233: I/Choreographer(684): Skipped 83 frames!  The application may be doing too much work on its main thread.
10-17 14:43:16.963: I/Choreographer(684): Skipped 260 frames!  The application may be doing too much work on its main thread.
10-17 14:43:16.963: I/Process(684): Sending signal. PID: 684 SIG: 9

我尝试过的:

  • 我在网上搜索并发现有人可以通过将 GPU 仿真设置为是来做到这一点
  • 更新了我的 AVD 模拟器

我的模拟器是如何设置的:

  • 目标 4.1.2。 - API 级别 16
  • ARM(armeabi-v7a)
  • 大小:1000mib
  • 皮肤:默认(WVGA800)
  • 硬件:MaxVm:48;抽象LCD密度:240;设备内存大小:512; GPU 仿真:是;

有人可以帮我解决这个问题吗?

我想补充一点,我正在使用 Eclipse,我尝试重新安装所有内容(Eclipse 和 SDK),但仍然没有成功。

最佳答案

模拟器 GPU 直通不稳定,我建议使用真实设备。 它在 Win7(Intel GPU)和 Ubuntu(nVidia GPU)上随机崩溃了我的 OpenGL ES 2.0 应用程序。

如您所见,它报告无法检测到 OpenGL 并回退到软件渲染器。

关于android - 模拟器未运行 OpenGL 应用程序,消息为 "Unfortunately, OpenGL ES 2.0 Basic has stopped",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12941299/

相关文章:

Android - 谷歌分析 INSTALL_REFERRER 未触发

c# - 在 MonoTouch 中显示 3D 模型

android - 如何将设备连接到 Eclipse?

android - 加速动画Android模拟器

java - 如何执行一个 Activity N次,其中N是用户输入

Android IAP的Java服务器端验证

Android/iOS 键盘 : stickers API

iPhone : Texture bigger than 64x64?

opengl-es - Android Studio NDK 错误,无法找到 GLES3/gl3.h,尽管它存在

android - 无法从 Eclipse、android 中删除虚拟设备