Android SDK模拟器不支持OpenGL es 2.0错误

时间:2013-09-12 02:48:33

标签: android opengl-es android-emulator

我试图在我的Eclipse Android SDK模拟器上运行Google Map APIv2。但是,我得到了不支持OpenGL的警告:

09-11 22:32:43.185: E/Google Maps Android API(1236): Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above
09-11 22:32:43.295: D/dalvikvm(1236): GC_FOR_ALLOC freed 327K, 13% free 2965K/3408K, paused 94ms, total 95ms
09-11 22:32:43.435: D/dalvikvm(1236): GC_FOR_ALLOC freed 137K, 11% free 3167K/3520K, paused 24ms, total 25ms
09-11 22:32:43.435: I/dalvikvm-heap(1236): Grow heap (frag case) to 3.811MB for 635812-byte allocation
09-11 22:32:43.605: D/dalvikvm(1236): GC_FOR_ALLOC freed <1K, 9% free 3788K/4144K, paused 164ms, total 168ms
09-11 22:32:43.904: D/libEGL(1236): loaded /system/lib/egl/libEGL_emulation.so
09-11 22:32:43.914: D/(1236): HostConnection::get() New Host Connection established 0x2a0efdf0, tid 1236
09-11 22:32:43.954: D/libEGL(1236): loaded /system/lib/egl/libGLESv1_CM_emulation.so
09-11 22:32:43.964: D/libEGL(1236): loaded /system/lib/egl/libGLESv2_emulation.so
09-11 22:32:44.144: W/EGL_emulation(1236): eglSurfaceAttrib not implemented
09-11 22:32:44.154: D/dalvikvm(1236): GC_FOR_ALLOC freed 268K, 9% free 4026K/4416K, paused 122ms, total 122ms
09-11 22:32:44.184: D/OpenGLRenderer(1236): Enabling debug mode 0
09-11 22:32:44.234: D/(1236): HostConnection::get() New Host Connection established 0x2a1f3190, tid 1257
09-11 22:32:44.969: D/dalvikvm(1236): GC_FOR_ALLOC freed 193K, 11% free 4061K/4548K, paused 429ms, total 431ms

我的应用只显示放大/缩小按钮。即使是“Google”商标也不存在。

从去年开始,似乎应该支持OpenGL ES 2.0: http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html

我看了看:Android OpenGL ES 2.0 emulatorhttp://www.learnopengles.com/android-emulator-now-supports-native-opengl-es2-0/

所以我的AVD是Google API18,平台4.3。我检查了“使用主机GPU”。我还在主xml中添加了以下内容:

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true"/>

只是想不到出错的地方。任何想法将不胜感激: - )

1 个答案:

答案 0 :(得分:0)

我认为你可以忽略这些警告,特别是“eglSurfaceAttrib未实现”。我注意到SDK中的许多示例程序都错误地检测到2.0是否可用。只是忽略它并继续前进。如果HelloEffects示例有效,那么您就可以了。这应该有所帮助:

http://software.intel.com/en-us/articles/porting-opengl-games-to-android-on-intel-atom-processors-part-1