Skip to content

file.read or file.readSync error: EACCES (Permission denied) #17

Description

@xpalacincreditoh

Good morning,

My system details:

  • Ubuntu 20.04.3 LTS
  • NativeScript CLI 8.1.4
  • NVM 0.35.3
  • Node v16.13.0
  • NPM 8.1.0
  • Android 11 API Level 30
  • Xiaomi Redmi Note 9S MIUI 12.5.2
  • "@nativescript/core": "~8.1.1",
  • "@nativescript-community/ui-document-picker": "^1.1.7",
  • "@nativescript/android": "8.1.1",

When Open filepicker and select a PDF file from downloads folder the file.readSync sayas error:

Error: java.io.FileNotFoundException: /storage/emulated/0/Download/Test.pdf: open failed: EACCES (Permission denied)

And when call file.read says error:

Error: ReadTask returns no result.

This just happens only when targetSdkVersion is set to 30 and not in 29, but now to publish and app in Google App Store needs targetSdkVersion 30.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions