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.34k stars 672 forks source link

App crashs on some Android 9.0 devices #105

Closed nguyenxuankiet262 closed 5 years ago

nguyenxuankiet262 commented 5 years ago

I cannot upload image from gallery. This is my logcat FileSystemException: Cannot open file, path = '/storage/emulated/0/zalo/picture/IMG_UPLOAD_20190711_000720.jpg' (OS Error: Permission denied, errno = 13)

miguelpruivo commented 5 years ago

Hi, Android 9.0 isn’t yet supported.

Thank you.

Edit: I was thinking in Android Q instead. Android 9.0 is fully supported.

nguyenxuankiet262 commented 5 years ago

Hope you soon upgrade this package!

miguelpruivo commented 5 years ago

Hi again @nguyenxuankiet262 somehow I was thinking in API 29 (Android Q) and not 9.0 (API 28) which is supported for a while now.

So, that means you shouldn’t experience any issue, but by looking at your logs looks like you didn’t provide read permissions for accessing that file. Do you have the READ permission on your manifest file?

If so, just make sure you’re on the latest version of the plugin and clean and build the project again.

Thank you!

nguyenxuankiet262 commented 5 years ago

I tested on many devices. Only android 9.0 devices get this issuse

nguyenxuankiet262 commented 5 years ago

Oh no sorry. It's not working on any devices, it just shows but cannot be uploaded. My manifest have READ Permission.

nguyenxuankiet262 commented 5 years ago

My fault!!! I really apologize to you because my function resize image when i upload image