Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Fatal Exception: java.lang.NoClassDefFoundError Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId; #768

Closed
rmazajev opened this issue Nov 13, 2021 · 3 comments

Comments

@rmazajev
Copy link

Hi,

Getting a lot of crashes with this stractrace:
Fatal Exception: java.lang.NoClassDefFoundError Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId; com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.init (MixpanelFCMMessagingService.java:84) com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance (MixpanelAPI.java:655) com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance (MixpanelAPI.java:536) com.mixpanel.android.mpmetrics.MixpanelAPI.getInstanceFromMpPayload (MixpanelAPI.java:380) com.mixpanel.android.mpmetrics.MixpanelAPI.trackPushNotificationEvent (MixpanelAPI.java:358) com.mixpanel.android.mpmetrics.MixpanelPushNotification.trackCampaignReceived (MixpanelPushNotification.java:623) com.mixpanel.android.mpmetrics.MixpanelPushNotification.parseIntent (MixpanelPushNotification.java:236) com.mixpanel.android.mpmetrics.MixpanelPushNotification.createNotification (MixpanelPushNotification.java:75) com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.showPushNotification (MixpanelFCMMessagingService.java:166) com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.showPushNotification (MixpanelFCMMessagingService.java:150) com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.onMessageReceived (MixpanelFCMMessagingService.java:118) com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.onMessageReceived (MixpanelFCMMessagingService.java:100)

SDK version: 5.9.5

@renclav
Copy link

renclav commented Nov 24, 2021

same for me, but looks like a duplicate of
#744

looks like there are a couple of use sites with
FirebaseInstanceId.getInstance().getInstanceId()
when it needs to use something like
FirebaseMessaging.getInstance().getToken().addOnSuccessListener(...)
if you're using a more recent version of firebase messaging

@dicarlomagnus
Copy link

dicarlomagnus commented Nov 26, 2021

Me too!! I have This problem currently, please fix it! Thank you! :D

@zihejia
Copy link
Contributor

zihejia commented Jan 3, 2022

Sorry for the inconvenience. We have released v6.0.0 which no longer contains the Messaging feature so you should not experience this issue anymore. I'm closing this one now, please feel free to reopen if the problem exists.

@zihejia zihejia closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants