I get this message as soon as I Build&Run and app runs on my phone (Android). The game works fine on editor. Last few things I remember doing was installing asset Unity Asset Store - The Best Assets for Game Making
I’m a begginer at coding so I could have done unespected things…
This is the log from logcat:
I/Unity (12868): Skipped rendering frame because GfxDevice is in invalid state (device lost)
I/Unity (12868):
I/Unity (12868): (Filename: Line: 1262)
I/Unity (12868):
E/BufferQueueProducer( 224): [SurfaceView] connect(P): BufferQueue has been abandoned
E/libEGL (12868): eglCreateWindowSurface: native_window_api_connect (win=0xb497d508) failed (0xffffffed) (already connected to another API?)
E/libEGL (12868): eglCreateWindowSurface:416 error 3003 (EGL_BAD_ALLOC)
E/Unity (12868): [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
E/Unity (12868):
E/Unity (12868): (Filename: ./Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 101)
E/Unity (12868):
I/Unity (12868): Skipped rendering frame because GfxDevice is in invalid state (device lost)
I/Unity (12868):
I/Unity (12868): (Filename: Line: 1262)
I mean I had to use the backup, because nothing worked… thank you for your interest. Probably a beginner error, now I know a bit more of how to add new plugins and assets without causing conflicts.
How do you do logcat in Unity? I have a similar problem. After my app is installed and tried to open it the “mynameapp has stopping” message shows up. Sometimes, Unity shows me this error on console. I’m attaching an image here.
*if it says: “‘adb’ is not recognized as an internal or external command, operable program or batch file.”
then you need to go to that folder where your android sdk is installed it, mine is under "…\android-sdk\platform-tools"
or add that folder into your windows environment variables path, to be able to run adb.exe from any where.
From Logcat:
08-13 19:37:42.062 6562-6562/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.oematrixlatam.oematrix, PID: 6562
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2)
at android.app.ActivityThread.installProvider(ActivityThread.java:6572)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6127)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6037)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.android.gms.common.internal.zzbq” on path: DexPathList[[zip file “/data/app/com.oematrixlatam.oematrix-Y82D60CRzNnMzklWGDNosw==/base.apk”],nativeLibraryDirectories=[/data/app/com.oematrixlatam.oematrix-Y82D60CRzNnMzklWGDNosw==/lib/arm, /data/app/com.oematrixlatam.oematrix-Y82D60CRzNnMzklWGDNosw==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2)
at android.app.ActivityThread.installProvider(ActivityThread.java:6572)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6127)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6037)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
The problem was solved. I had to delete Firebase folder in my project. I think Unity 2018 changed it for some reason. Good ways to find these kind of erros are Logcat and Assets->Play Service Resolver->Android Resolver->Force Resolve. In case you are using libraries.