android-multipicker-library icon indicating copy to clipboard operation
android-multipicker-library copied to clipboard

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

Open Hinal1108 opened this issue 5 years ago • 3 comments

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

Hinal1108 avatar Dec 20 '19 05:12 Hinal1108

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

android:requestLegacyExternalStorage="true"

nilsorathiya avatar Mar 24 '20 12:03 nilsorathiya

@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.

dev-Shivam96 avatar Oct 09 '20 14:10 dev-Shivam96

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

nisargmi avatar Jan 27 '21 12:01 nisargmi