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
Android ZoneID Crashes on Some Device/OS #25
Comments
Same issue on Xiaomi Redmi 4
|
the java.time package was added only in API 26. https://developer.android.com/reference/java/time/package-summary Don't know how to solve this issue. |
I think that this can help: https://developer.android.com/studio/write/java8-support-table Testing it right now Let me know if it will help for someone |
What was the reason to switch to On the "consumer" side, it seems like sticking to version 1.0.10 is the way to go for now. |
With this breaking change (!), this should have been version 2.0.0 and not 1.1.0. In that case, Example: But when running a build, I get this: Notice the: flutter_native_timezone-1.1.0 part |
@dinodzakmic |
@sanekyy I know, I will do it. |
I have tested solution which I sent above. It works. |
@sanekyy would you open a PR for the fix? |
Don't change the pubspec.lock file. Make a dependency override instead in pubspec.yaml:
|
@dinodzakmic probably it would be enough to remove the ^ before 1.0.10 in your normal dependency in pubspec.yaml |
I just saw this error this morning. The bad thing is my app is on production mode. Gladfully @sanekyy managed to find the workaround, thanks! |
Fixed at #27 |
Can anyone confirm that version 2.0.0 fixes this crash on Android 7 and below? |
Yes, after upgrading to version 2.0.0 it's working. |
Updating to version |
Updating to version |
Hi! |
Really sorry. It seems it was a false alarm. now it's working :/ |
With version 1.1.0 of the plugin, this crash was seen on a Samsung Galaxy S7 Edge running Android 7.0.
Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/ZoneId;
at com.whelksoft.flutter_native_timezone.FlutterNativeTimezonePlugin.onMethodCall(FlutterNativeTimezonePlugin.java)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:6688)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
The text was updated successfully, but these errors were encountered: