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
PlatformException/ClassCastException: java.lang.Integer cannot be cast to java.lang.Long #1796
Comments
I folowed the latest README for Android 6 and 7, but app still crashes at app start. |
Haven't seen this before, which version of the plugin is this stack trace from? Do you register a function against the |
On emulator with Android 7 I cannot reproduce the issue. Is happening on real device with Android 6 (Sony Xperia Compact Tablet, Sony Xperia Compact). I own these devices and can retest.
|
Yes, is defined. This is the implemenation of the funktion:
|
What does your |
I've opened a PR that I believe would fix the issue. Are you able to help test to confirm if this fixes on the device but having your app point to that branch on the repository? This page provides some examples on how to do this https://dart.dev/tools/pub/dependencies#git-packages |
Retested on Sony Xperia Z3 Compact (D5803). The issue is solved by this pull request. I move the new libraries on beta test now for real users. I want to thank you so much. Your response time and the fix was immediately fast! I find that absolutely not self-evident. Thank you for your great work. For others that are affected:
|
FYI I'm merging the PR in to release the fix and will delete the branch so I suggest you don't point to that branch for your release as otherwise the build will fail. If you're going to use a Git dependency then fork and maintain your own branch. New release will be published in the next few minutes |
FYI 12.0.4 has now been published |
Describe the bug
If I run the app on Android 6 devices, the app crashes. On Android 13 everything works fine. Maybe same bug like #1794?
Affected versions
Looks like this error came up in v10.0.0 and later. 9.x version works.
I tested:
Stacktrace from debug version
To Reproduce
The text was updated successfully, but these errors were encountered: