在模拟器上完全编译并安装APK文件后,应用程序根本无法启动(屏幕只是白色),在调试中,每秒出现以下消息:
W/Resources: Converting to string: TypedValue{t=0x10/d=0x14 a=-1}
W/Resources: Converting to string: TypedValue{t=0x10/d=0x14 a=-1}
W/EGL_emulation: eglSurfaceAttrib not implemented
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xdb0d14a0, error=EGL_SUCCESS`
也许某些视图已声明,但未初始化(例如,textView)。有一个命令,因此应用程序崩溃而没有给出错误。它经常发生在我身上
通过初始化所有变量解决了这个问题。