skip to Main Content

I need to migrate my application from android 12 to android 13 since in android 12 it does not show any errors, however when testing the app on a device with android 13 it gives me the following error:

[MethodChannelFilePicker] Platform exception:
PlatformException(read_external_storage_denied, User did not allow
reading external storage, null, null).

I’ve tried adding validations in the manifest, like the ones in:

I have also tried adding these validations in the main:

2

Answers


  1. Add the following permission in your manifest.xml inside

    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    

    If it still does not work out, upgrade or change the package you use for picking files and check the documentation.

    recommended : https://pub.dev/packages/file_picker/versions/5.2.5

    Login or Signup to reply.
  2. Referring to:
    https://developer.android.com/about/versions/13/behavior-changes-13
    enter image description here

    You might want to request the individual Images/Video/Audio permissions if android 13+ is detected.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search