miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.33k stars 657 forks source link

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(read_external_storage_denied, User did not allow reading external storage #1263

Closed codermonk1 closed 1 year ago

codermonk1 commented 1 year ago

when i click to fetch file like pdf then its give error ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(read_external_storage_denied, User did not allow reading external storage

Its only happened in android 13 , sdk33

samirakhmedov commented 1 year ago

Is there any information about this issue? I have the same problem.

gerken-tss commented 1 year ago

Having the same problem. Extremely frustrating. In addition, the user is unable to give the permission in the permission settings of his OS. This means he is locked out of the file chooser infinitely long. Is there something on the AndroidManifest.xml level that has changed since SDK 33? Some permission that needs to be explicitly given?

CoderNamedHendrick commented 1 year ago

I'm having a similar issue with my company's app. Is there a possible fix for this problem?

CoderNamedHendrick commented 1 year ago

I did some digging around and found that the intent this package is sending to get files has been rescinded for Android 13 actively and should be moving to Android 11+ in the future.

I am going to try some things on my end if I can find a fix for it

gerken-tss commented 1 year ago

@CoderNamedHendrick Thank you for looking further into the issue! Would be very grateful for a solution 🙏. If I can be of any assistance, please let me know!

It's weird that it doesn't affect every device / manufacturer. Samsung S21 Ultra is definitely affected. Pixel 4a isn't. Some One Plus models are also not affected. This is the part I don't understand.

CoderNamedHendrick commented 1 year ago

@gerken-tss slight problem. The issue doesn't seem reproducible on Android emulators. Working on getting my hands on a pixel where the error was detected via crashlytics, I'll keep you posted on my progress. Also if you have a device where the error occurs you could clone the package repository and try some of these new intents.

gerken-tss commented 1 year ago

@CoderNamedHendrick Do you have a list of devices that are linked to this error (from your Crashlytics error logging)? That would be very helpful!

CoderNamedHendrick commented 1 year ago

Just pixel 6 for now @gerken-tss

codermonk1 commented 1 year ago

Vivo v21 5g

On Fri, Apr 21, 2023, 12:59 PM Sebastine Odeh @.***> wrote:

Just pixel 6 for now @gerken-tss https://github.com/gerken-tss

— Reply to this email directly, view it on GitHub https://github.com/miguelpruivo/flutter_file_picker/issues/1263#issuecomment-1517393744, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTWHZFVDCQSKZNONMKG3BTXCIZN7ANCNFSM6AAAAAAW7GIHCY . You are receiving this because you authored the thread.Message ID: @.***>

miguelpruivo commented 1 year ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

CoderNamedHendrick commented 1 year ago

For my use-case, it seems the issue was already solved. After numerous tests and comparing versions, I discovered it was a version problem on my end. @codermonk1 @gerken-tss try upgrading the package on your end. It should fix it.

CoderNamedHendrick commented 1 year ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

It's been fixed already, sorry for making a fuss and thanks for such a wonderful package

codermonk1 commented 1 year ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

It's been fixed already, sorry for making a fuss and thanks for such a wonderful package

which version used???

CoderNamedHendrick commented 1 year ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

It's been fixed already, sorry for making a fuss and thanks for such a wonderful package

which version used???

I was on an earlier version and it's been fixed on 5.2.10. I should have checked the changelogs

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

RomanPreis commented 2 months ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

It's been fixed already, sorry for making a fuss and thanks for such a wonderful package

which version used???

I was on an earlier version and it's been fixed on 5.2.10. I should have checked the changelogs

I'm using 5.2.10 right now and I'm running into this bug

codermonk1 commented 2 months ago

@CoderNamedHendrick feel free to issue a PR if you've already managed to fix it, I'll review/merge it right away.

It's been fixed already, sorry for making a fuss and thanks for such a wonderful package

which version used???

I was on an earlier version and it's been fixed on 5.2.10. I should have checked the changelogs

I'm using 5.2.10 right now and I'm running into this bug

remove plug in from dependency then again add from terminal if again error them change your kotin version