-
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
Fail to pick image using image_picker plugin On Android 10 #40339
Comments
@VickySalunkhe Please provide a small self-contained app that demonstrates the problem. You can include small examples inline if they're enclosed by backticks, or just provide a public link to a github "gist" - https://gist.github.com/. |
I have a similar problem. Image picker stopped returning images after upgrading to 1.9. It works in debug mode, but not in release mode. Here's a simple test you can run that we used to duplicate the problem. We're running this on a Pixel 3A with Android 10.
|
issue got solved
I solved this issue by just removing the code/functionality step by step which I added in backwards manner. you can close this issue but I think the text highlighted can play part which needs to be solved. |
Closing as asked, the issue is referenced to the similar one. |
hi @BondarenkoStas is your app working with android 10, while using image_picker plugin |
In my case: do, it doesn't. Works fine with < 10 though |
Same here, the event isnt triggered in my app |
Any Update? |
So for me, turns out that i had another event listener on the button i was trying to use to trigger the image_picker, took of the listener and it worked for me |
@egorikem well that didn't help me resolve the image_picker issue to pick image on Android 10 devices. What I did is downgraded Meanwhile please Flutter team have a look at this issue as due to growing Android 10 devices count this issue is getting big day by day. |
the same issue |
Switch to flutter channel stable and upgrade. Works on channel stable. |
To sum up:
On the stable channel we have flutter versions 1.17.5 which unfortunately does not work with some libraries. Example: Any ideas? |
Did you try upgrading android project to plugin api v2? |
@just-kip Tried, the same |
My better suggestion is to use your own channel to pick the image from native instead of using the third-party libraries, because sometimes you may get the plugin issues which will not be resolved and need to be waited until the plugin gets updated. Recently i faced the Permissions issue in flutter where i'm using permission_handler and the image_picker, the permission_handler i have used for microphone access, where as the image_picker will have their own permission checker. So when we include both the libraries in the project only one library will work because of the Override method of OnRequest and OnActivity. The image_picker works for android 10 only in debug mode. If anybody want i can provide the code for picking the image using own channel |
I am having the same issue. |
Im also facing the same issue. if any one having workaround for this issue? |
Any fixes ? The image_picker works for android 10 only in debug mode ? |
@a-elhaddad Correct, works on debug mode |
yes I experienced the same thing in Image_picker only works for android 10 in debug mode? |
@Sohi2795 Can you please guide me how to pick the image from camera using platform channel? |
@DharmeshBasapati First create a channel . Every time you need to send the result after invoking the channel, otherwise it will throws error.
|
Thanks for the detailed code. I will try to implement it and let you know. |
@Sohi2795 could you provide the code for custom image picker? |
@karambitmonger find the example https://github.com/Sohi2795/flutter_image_picker |
Is there any fix? I am facing this issue. |
What i did was to change the build Gradle to 3.5.0 in AndroidManifest.xml and the classpath and it worked for me. I guess imagepicker haven't updated the package to the latest Android Gradle version. |
Hello Everyone, 40339.mp4flutter doctor -v
I am going ahead and closing this as not producible and probably fixed in latest plugin version, since it has gone through many bug fixes and features since this issue was filed. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
for me this error still exist - using |
What's the combination of version to make it work? We do experience the problem still. We have:
We also tried:
No luck in release mode, we get |
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 am using the image_picker plugin in my app from last 5 months
there has been no code change since then but recently when I upgraded to flutter stable v1.9.1
I started getting this error whenever I tried to use the feature
When I click on button to pick image via gallery / camera
event is launched but it doesn't return any file with it
and there is no entry in log either
but when I try once more the button no longer works and errors are registered in the log
I tried FLUTTER CLEAN and changing the channel too but that too didnt help
** log **
flutter doctor
The text was updated successfully, but these errors were encountered: