question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 9 Error: mkdir failed to create some or all directories in '/storage/emulated/0/

See original GitHub issue

Any time i type the Error below, I get an error : Error: mkdir failed to create some or all directories in '/storage/emulated/0/

RNFetchBlob.fs.mkdir( RNFetchBlob.fs.dirs.SDCardDir + '/myDownloader', );

“rn-fetch-blob”: “^0.12.0”, “react-native”: “0.62.2”,

PLEASE HELP

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
PedroTrogocommented, Nov 25, 2020

try to add requestLegacyExternalStorage in AndroidManifest

<manifest ... >
<!-- This attribute is "false" by default on apps targeting
     Android 10 or higher. -->
  <application android:requestLegacyExternalStorage="true" ... >
    ...
  </application>
</manifest>
0reactions
Malik-Usman17commented, May 26, 2022

Still facing this issue can’t create the directory on my device.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't create a directory on /storage/emulated/0 on emulator
1. use mkdirs(); it will create parent folders if its not there; but mkdir wont create and hence it will return false ·...
Read more >
Creation of emulated storage directory - Google Groups
Sometimes this directory is not created after a new user is added. As a result we get Zygote crashing since it cannot mountEmulatedStorage()....
Read more >
Cannot create file in "/storage/emulated/0/Documents" with ...
Hi,. I am not able to create any file using "System.IO.File.Create" API at following location with my app targeted to Android 11 (...
Read more >
Filesystem.mkdir not working right in Android Emulator
I am building a simple app that will download modules into internal storage in order to extend my app's capabilities.
Read more >
Access app-specific files - Android Developers
Your app doesn't require any system permissions to read and write to files in these directories. Other apps cannot access files stored within...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found