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

[Bug]: App crashes to due to NoClassDefFoundError on an Android 5.1 device when requesting permissions #981

Open
2 of 3 tasks
logickoder opened this issue Dec 16, 2024 · 0 comments

Comments

@logickoder
Copy link

What happened?

My app crashes when requesting permission on an Android 5.1 device

Steps to reproduce?

1. Install v5.2.8
2. Launch the app on an android 5 device
3. Wait for one signal to request the required permissions
4. App crashes

What did you expect to happen?

I expected nothing to happen, especially since I think it is just notification permission and that doesn't exist on android 5

OneSignal Flutter SDK version

5.2.8

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Fatal Exception: java.lang.NoClassDefFoundError: r6.e
       at com.onesignal.flutter.OneSignalNotifications.requestPermission(OneSignalNotifications.java:1)
       at com.onesignal.flutter.OneSignalNotifications.onMethodCall(OneSignalNotifications.java:1)
       at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:1)
       at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:1)
       at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0(DartMessenger.java:1)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:224)
       at android.app.ActivityThread.main(ActivityThread.java:5911)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@logickoder logickoder changed the title [Bug]: [Bug]: App crashes to due to NoClassDefFoundError on an Android 5.1 device when requesting permissions Dec 16, 2024
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

1 participant