-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/util/zzw #463
Comments
Hey I had the same problem, I've resolved it by adding |
I also got the same problem recently. After hours of trials and errors (and hair pulling), turned out it's simply because of version mismatch between I have To force versions used by library, you can set it on app/build.gradle: configurations.all {
resolutionStrategy {
// ...
force 'com.google.android.gms:play-services-gcm:10.2.6'
force 'com.google.firebase:firebase-messaging:10.2.6'
}
} or dependencies {
// ...
compile ('com.google.android.gms:play-services-gcm:10.2.6') {
force = true;
}
compile ('com.google.firebase:firebase-messaging:10.2.6') {
force = true;
}
} either one will give the same result, I prefer the first one because it's easy on eyes. That's it, it fixes the dreaded red screen NoClassDefFoundError for me. You might want to verify versions used by library dependencies. To see actual versions used by dependencies, check your For example in my pc I have: Make sure libraries inside If all above still fails, as last resort you can try disable InstanceID check on You can find it on your local That I try commenting it out at first, and it works preventing NoClassDefFoundError. Hope this helps. |
Can confirm that setting the googlePlayServicesVersion flag solved this for me too. |
@machour closable - another failure to install correctly, but the library definitely works according to instructions (I just installed it...) - people need to define their specific versions in android/build.gradle then the modules will use the right version |
any solution about my problem android app got crashed when i start chrome debugger. here is a log that i am getting in android-studio.
|
thanks @mikehardy from here |
Works only in the sense your compile works. That library is really, really old. It's an android library released before Android 9 was released. Android 10 is out now. I hesitate to think how it will work in practice. You will want a modern library I think. |
Hi,
I updated my dependencies in my app/build.gradle. Now I get the following red-screen error when I start my app (everything else is building correctly):
This only happens on android. I tried to add
in my dependencies, but with no luck.
my android settings:
also, I tried to do the following suggestions:
https://stackoverflow.com/questions/51036749/react-native-device-info-crash-the-app-on-android
but that didn't work either.
The text was updated successfully, but these errors were encountered: