coomar2841 / android-multipicker-library

Android Multipicker Library
Apache License 2.0
438 stars 107 forks source link

App was crash when select profile pic from gallery in Android Q #174

Open Hinal1108 opened 4 years ago

Hinal1108 commented 4 years ago

In Android Q, when we open multi picker for image selection, and I am selected Gallery option that moment app was crash, below is crash report:

Caused by: java.lang.IllegalArgumentException: column 'bucket_id' does not exist. Available columns: [instance_id, format, height, is_drm, owner_package_name, parent, date_modified, date_expires, _display_name, mime_type, _id, _data, _hash, _size, title, width, is_trashed, document_id, is_download, is_pending, date_added, primary_directory, secondary_directory, original_document_id, media_type, relative_path]

I am using below version: com.kbeanie:multipicker:1.6@aar

nilsorathiya commented 4 years ago

@Hinal1108 That is not a library issue. add below line in your application tag of a manifest file...

android:requestLegacyExternalStorage="true"

dev-Shivam96 commented 4 years ago

@nilsorathiya This is an Android Q security issue. And your solution is temporary, this solution is not working in Android 11. check this link. Please refer this link for better solution.

nisargmi commented 3 years ago

Please provide support for android Q also as you need to provide support for scope storage.