1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Getting permission to the external storage (file_provider plugin)

Discussão em 'Mobile' iniciado por Stack, Outubro 1, 2024 às 07:12.

  1. Stack

    Stack Membro Participativo

    I'm having some problems getting permissions to the external storage on android devices with flutter.

    When I try to create a directory in my external storage I get this error (I've changed the directory just for this example. In my own project the directory name is different):

    I/flutter (12727): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
    I/flutter (12727): The following FileSystemException was thrown while handling a gesture:
    I/flutter (12727): Creation failed, path = '/storage/emulated/0/com.domain.bundle' (OS Error: Permission denied,
    I/flutter (12727): errno = 13)
    I/flutter (12727):


    I've already added
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    to the manifest file and rebuild the entire project. What else can I try?

    Also just listing all the files in the external storage gives the same permission error.

    Hope to hear!

    Continue reading...

Compartilhe esta Página