-
Notifications
You must be signed in to change notification settings - Fork 219
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
[Bug]: java.lang.NoClassDefFoundError encountered in OneSignal Flutter Plugin #779
Comments
Hi @pawankumar-creator, thanks for reporting. NoClassDefFoundError means "The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found." Are you able to reproduce this consistently? And is this with a debug or release build? Additionally, do you use any code obfuscation tools like Proguard or Dexguard? |
May or may not be related to OneSignal/OneSignal-Cordova-SDK#910 |
This might help |
The issue occurs when I use the latest version. It happens with the release build, not in debug. I'm not using any obfuscation tools. |
same problem using onesignal_flutter: ^5.0.4 on Android 5.0, 5.1 and 6.0 devices |
I keep getting the same error reported here... I tried @sur2548 solution linked from the other issue, but for some reason the proguard rule I performed a build and confirmed through mapping.txt that the Android code from Flutter Plugin keeps getting minified and throwing errors. |
any update or workaround about this issue? i still face same problem on production app, i use version 5.2.6 |
What happened?
Description:
While using the OneSignal Flutter plugin, I encountered a java.lang.NoClassDefFoundError during runtime. This error wasn't observed during compile-time, and I believe it might be related to the plugin's implementation or a potential conflict with other plugins/dependencies.
Stack Trace:
flutter doctor
What did you expect to happen?
The plugin should operate without causing any runtime exceptions, especially NoClassDefFoundError
OneSignal Flutter SDK version
Release ^5.0.2
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: