-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
[image_picker] crash when start #48622
Comments
Does this reproduce for you in the image_picker example app? If not, can you provide a minimum reproduction so that this can be debugged/triaged? |
Confirmed. Works when devving, but when doing flutter build apk and running that, I get the same errors. |
I fixed this by disabling tree shaking with minifyEnabled and shrinkCode. It is simply bad and unreliable. If anyone ever faces issues that pop up only during release build, try that. |
no, when I tried on example app it's work.
But when I remove that code and just import package image_picker my app still crash. |
it's fixed my problem. thank you very much |
Can you give more details on how to do this? |
I believe you can just pass We shouldn't require you to disable shrinking for this plugin. |
You can indeed, but when reverting to an old version that did work, other
plugins behaved inconsistently, compared to their debug release
counterparts. That's when I decided I was done with the tree shaking
altogether. However, I'd recommend passing the flags he just mentioned to
test if that fixes your problem.
…On Mon, Jan 13, 2020, 18:45 Dan Field ***@***.***> wrote:
I believe you can just pass --no-shrink to the Flutter tool to disable
shrinking.
We shouldn't require you to disable shrinking for this plugin.
/cc @blasten <https://github.com/blasten> - did we miss this one when
evaluating proguard/r8 rules?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#48622?email_source=notifications&email_token=AJIOJVLAYSQMTEYINKDX223Q5SSCDA5CNFSM4KFQJZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZUEDA#issuecomment-573784588>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIOJVJQJA5ZKR4OTEEP4SDQ5SSCDANCNFSM4KFQJZUA>
.
|
The issue is in the That needs a proguard rule. cc @amirh |
Discussed with @amirh offline, the reflection was originally added in order to support 1.9 when it was stable. Now that a more recent version has rolled we should be able to avoid it entirely. I'll look into taking it out of flutter_plugin_android_lifecycle. |
Version 1.0.4 of If you're still seeing this issue, please comment with minimal reproduction steps, your flutter version, and your |
Thant you! I add " flutter_plugin_android_lifecycle: ^1.0.4" to pubspec.yaml |
Very nice! We will attempt a build with tree shaking enabled soon, including your fix, on the latest stable at least. Will check with dev and beta channels as well. |
Would like to share (just for reference) that following was my experience related to this issue:
I am a solo developer in my team, and I'm able to build features fast, thanks to Flutter, and I have got huge respect for the small team at Google leading it. I'm sure they must be doing everything possible to reduce such cases. Not sure what should I do to prevent such instances to happen in future? Have happened a few times before, due to other plugins, Android-specific/iOS-specific/Flutter core issue. Few things which come to my mind:
Felt like sharing so that the team is aware of some case scenarios. P.S. I received a prompt 1-2 times that an upgrade is available, but I chose to delay it owning tofact that it might take up some time fix any broken functionalities. Also, I couldn't find and release notes online for the latest version. Would be great if we add the link to them here: https://flutter.dev/docs/development/tools/sdk/releases?tab=macos |
This fixes crash if flutter_plugin_android_lifecycle: 1.0.3 is saved in pubspec.lock flutter/flutter#48622 flutter/flutter#48906
This fixes crash if flutter_plugin_android_lifecycle: 1.0.3 is saved in pubspec.lock flutter/flutter#48622 flutter/flutter#48906
This fixes crash if flutter_plugin_android_lifecycle: 1.0.3 is saved in pubspec.lock flutter/flutter#48622 flutter/flutter#48906
This fixes crash if flutter_plugin_android_lifecycle: 1.0.3 is saved in pubspec.lock flutter/flutter#48622 flutter/flutter#48906
This fixes crash if flutter_plugin_android_lifecycle: 1.0.3 is saved in pubspec.lock flutter/flutter#48622 flutter/flutter#48906
Hi, I ran into the same problem. I changed the Versions in my pubspec, but my App crashes again. flutter_plugin_android_lifecycle: ^1.0.11
Did I miss something else? Edit: Maybe Fixed with Gradle Downgrade:3.6.3 |
flutter_plugin_android_lifecycle: ^1.0.11
|
Hi @TahaTesser |
For what it's worth, moving to |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I have a trouble when I am using image_picker 0.6.3, my app always crash when developing but can run when debug.
This is crash log
Minsdkversion 16
Targetsdkversion 28
Deviceos android pie
The text was updated successfully, but these errors were encountered: