Android应用程序在模拟器上启动但不响应

时间:2015-08-28 14:33:41

标签: android

昨天和今天一切正常,我的应用程序没有在模拟器上响应!它让我发疯,因为除了更新Android Studio之外我没有做任何改变或做出任何改变,我不知道这是不是原因。该应用程序在模拟器上启动,但它会一直闪烁。其他应用程序运行正常。

我的logcat输出给了我这个并且没有停止!:

   --------- beginning of system
08-28 14:29:16.772    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:16.772    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa370ae00, error=EGL_SUCCESS
08-28 14:29:16.890    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.009    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.009    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa28cad20, error=EGL_SUCCESS
08-28 14:29:17.233    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.312    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.312    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa29a7b60, error=EGL_SUCCESS
08-28 14:29:17.382    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.529    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.529    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa29a7b40, error=EGL_SUCCESS
08-28 14:29:17.839    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.883    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.883    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2a98dc0, error=EGL_SUCCESS
08-28 14:29:17.926    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.097    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.097    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2a98da0, error=EGL_SUCCESS
08-28 14:29:18.282    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.339    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.339    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2ba3480, error=EGL_SUCCESS
08-28 14:29:18.539    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.628    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.628    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa327f3a0, error=EGL_SUCCESS
08-28 14:29:18.674    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.840    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.840    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa327f380, error=EGL_SUCCESS
08-28 14:29:19.136    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.195    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.195    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa250aa40, error=EGL_SUCCESS
08-28 14:29:19.323    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.543    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.543    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa25843a0, error=EGL_SUCCESS
08-28 14:29:19.657    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.840    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.840    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa25f0600, error=EGL_SUCCESS
08-28 14:29:20.047    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.191    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.191    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2601260, error=EGL_SUCCESS
08-28 14:29:20.398    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.461    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.461    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa243a740, error=EGL_SUCCESS
08-28 14:29:20.667    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.771    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.771    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa24477e0, error=EGL_SUCCESS
08-28 14:29:20.979    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:21.072    1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:21.072    1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2447720, error=EGL_SUCCESS
08-28 14:29:21.264    1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.

我的控制台就是这个......:

emulator: device fd:784
HAXM is working and emulator runs in fast virt mode
emulator: warning: opening audio input failed
creating window 61 83 462 820
emulator: emulator window was out of view and was recentered
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not run program: Ü
draw: Could not run program: à
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: î
draw: Could not run program: î
draw: Could not run program: î
draw: Could not run program: ð
draw: Could not run program: ð
ColorBuffer::bindFbo: FBO not complete: 0
draw: Could not run program: ò

这些输出不会停止!!请任何帮助将不胜感激.. 如果需要其他任何东西,请告诉我!!

4 个答案:

答案 0 :(得分:0)

我没有“解决”问题的解决方案,但如果您通过创建新的AVD并将其用作默认模拟器来解决这个问题呢?

答案 1 :(得分:0)

尝试创建另一个虚拟机。 检查gradle版本。 重新安装api包。

答案 2 :(得分:0)

对于将来的参考资料,我已经通过返回我的应用程序的旧版本并从那里重新开始解决了我的问题。无论我做了多少研究,我都没有找到直接的解决方案。显然这与OpenGLRenderer有关,但我不确定以哪种方式。

我能给出的最佳建议是在不同阶段制作应用程序的固定副本,以防出现类似情况。此外,在更新Android Studio之前,请务必确保保存文件,因为它可能会弄乱,并且在项目的更新阶段要小心。

答案 3 :(得分:-1)

我自己发现模拟器非常无用。使用真正的Android设备,然后你知道它是否有效。