-
Notifications
You must be signed in to change notification settings - Fork 47
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
0.5.4 Exception after upload to Google Play #80
Comments
Comes from here:
Either:
It's been a while since I tested how this code works. Never tried releasing it. To be clear, I won't dive into this anytime soon. I don't have time and can't reproduce. If you can reproduce please consider bisecting the git history between the two releases: 0.5.3...0.5.4 Or test what happens before/after: c0c3a1b maybe LTO had some impact. You can just use a git dependency on this repository to test out a few different versions (might require you to do a |
Hi, this is biting our android build as well. I'm getting the same "unsupported operation" exception in my console using v0.5.4 when we run It is reproducible every time for me, so easy enough to track down. I did a git bisect using dependency overrides in my project's pubspec, and the LTO commit you mentioned, As mentioned, 0.5.3 is working well, so we'll stick with that until this can be fixed. Thanks. Edit: I forgot to mention that this exception is happening for me in debug mode as well as the simulator, which is different than @mrcsh's scenario. |
Filed a PR to disable LTO on Android. That'll probably adversely affect the binary size. But, hehe, if it was removing all symbols that might be acceptable. |
Fix shipped in 0.5.6 -- https://pub.dev/packages/webcrypto |
The Android version of my application is throwing the following exception after updating to 0.5.4
(ios seems to be unaffected)
Unsupported operation: package:webcrypto cannot be used from scripts or `flutter test` unless `flutter pub run webcrypto:setup` has been run for the current root project.
The error does not happen in debug mode on the simulator nor when running in release mode.
My guess is the upload process is stripping some symbols that is causing the failure?
Reverting to 0.5.3 resolved the issue for now.
Using:
Flutter (Channel stable, 3.16.7, on Fedora Linux 39 (Thirty Nine) 6.6.8-200.fc39.x86_64, locale en_US.UTF-8)
Android toolchain - develop for Android devices (Android SDK version 33.0.0)
The text was updated successfully, but these errors were encountered: