flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

FileSystemException: Directory listing failed, path = './' (OS Error: Permission denied, errno = 13)

Open walikhan226 opened this issue 5 years ago • 4 comments

walikhan226 avatar Aug 01 '21 18:08 walikhan226

Hi @walikhan226, I can not help you without any information. Can you please send me a clear description of your problem, a code snippet of your code which introduces this error, and a flutter doctor -v output.

JDDV avatar Aug 05 '21 09:08 JDDV

@walikhan226 You need to specifiy targetSdkVersion 30 in build.gradle

kamlesh9070 avatar Aug 07 '21 06:08 kamlesh9070

Dear @JDDV , I might be able to supply more information to this, since I am fighting probably the same issue.

Just as a context, I am trying to continue using legacy storage support by adding:

android:requestLegacyExternalStorage="true"

to the manifest.

Also I am keeping target sdk to 29 as advised by android devel channels and compile sdk to 30 as requested by the plugin:

        minSdkVersion 21
        targetSdkVersion 29
        compileSdkVersion 30
        buildToolsVersion = "29.0.2"

Storage permissions are properly asked and allowed at app startup. I also checked in debug mode and storage is granted.

But then (on Android 11), as soon as it tries to open an existing sqlite db for writing, the app breaks due to a readonly issue. It seems like it is ignoring the requestLegacyExternalStorage setting.

@kamlesh9070 , the docs claim you need to put to 30 only the compile sdk, not the target.

moovida avatar Aug 16 '21 09:08 moovida

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

no-response[bot] avatar Aug 19 '21 09:08 no-response[bot]