Game is crashing for first time during fresh install and working on second time.

358 views
Skip to first unread message

Mohit Verma

unread,
Mar 12, 2024, 10:06:35 AM3/12/24
to Firebase Google Group
I'm using Messaging sdk 11.0.6 for push notification and my game is crashing only once if i start the game from a fresh install. If i just update the app it works normaly and from secong time it's working normally. 

Here is the log
FATAL EXCEPTION: Firebase-Messaging-Intent-Handle
                                                                                                    Process: com.moonglabs.epiccricket, PID: 32697
                                                                                                    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/flatbuffers/FlatBufferBuilder;
                                                                                                    at com.google.firebase.messaging.cpp.RegistrationIntentService.generateTokenByteBuffer(RegistrationIntentService.java:86)
                                                                                                    at com.google.firebase.messaging.cpp.RegistrationIntentService.writeTokenToInternalStorage(RegistrationIntentService.java:64)
                                                                                                    at com.google.firebase.messaging.cpp.ListenerService.onNewToken(ListenerService.java:72)
                                                                                                    at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(FirebaseMessagingService.java:165)
                                                                                                    at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$com-google-firebase-messaging-EnhancedIntentService(EnhancedIntentService.java:82)
                                                                                                    at com.google.firebase.messaging.EnhancedIntentService$$ExternalSyntheticLambda1.run(Unknown Source:6)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                                                                    at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.1.0:2)
                                                                                                    at java.lang.Thread.run(Thread.java:1012)
                                                                                                    Caused by: java.lang.ClassNotFoundException: com.google.flatbuffers.FlatBufferBuilder
                                                                                                    at com.google.firebase.messaging.cpp.RegistrationIntentService.generateTokenByteBuffer(RegistrationIntentService.java:86) 
                                                                                                    at com.google.firebase.messaging.cpp.RegistrationIntentService.writeTokenToInternalStorage(RegistrationIntentService.java:64) 
                                                                                                    at com.google.firebase.messaging.cpp.ListenerService.onNewToken(ListenerService.java:72) 
                                                                                                    at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(FirebaseMessagingService.java:165) 
                                                                                                    at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$com-google-firebase-messaging-EnhancedIntentService(EnhancedIntentService.java:82) 
                                                                                                    at com.google.firebase.messaging.EnhancedIntentService$$ExternalSyntheticLambda1.run(Unknown Source:6) 
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
                                                                                                    at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.1.0:2) 
                                                                                                    at java.lang.Thread.run(Thread.java:1012) 

Jen Harvey Hugg

unread,
Mar 12, 2024, 10:25:31 AM3/12/24
to fireba...@googlegroups.com
Hi, Mohit:

Are you using Unity and running Remote Config? If so, I wonder if you're running into this issue: https://github.com/firebase/firebase-cpp-sdk/issues/1433

Can you file an issue with the Firebase Support Team at:


Please include as much detail as possible and a reference to the GitHub issue (if this seems to be the same issue--but definitely file the case regardless).

Thanks in advance and thanks for using Firebase!

- Jen @ Firebase

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8f7a6a6b-7850-492d-a84a-7c62dbdd9d4bn%40googlegroups.com.

Mohit Verma

unread,
Mar 13, 2024, 3:27:08 PM3/13/24
to Firebase Google Group
Found the solution.
I was using these two aar files

implementation(name: 'com.google.firebase.firebase-messaging-unity-11.6.0', ext:'aar')
implementation(name: 'com.google.firebase.firebase-messaging-23.2.1', ext:'aar')

when I removed the first aar file it worked. both files are conflicting with each other
Reply all
Reply to author
Forward
0 new messages