java.io.FileNotFoundException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Before using FileOutputStream check that there's no directory or file with the same name you're trying to use. Trying to remove it works as well. Try using FileAsyncHttpResponseHandler(context) as well!

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • [Error] Sample error as below
    via GitHub by mrljdx
    ,
  • GitHub comment 220#236786328
    via GitHub by mayankkrjain
    ,
  • 保存二维码提示保存失败
    via GitHub by AI-Cloud
    ,
    • java.io.FileNotFoundException: /storage/emulated/0/Android/data/[package name]/cache/http/journal.tmp: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:456) at java.io.FileOutputStream.<init>(FileOutputStream.java:87) at java.io.FileOutputStream.<init>(FileOutputStream.java:72) at com.android.okhttp.internal.DiskLruCache.rebuildJournal(DiskLruCache.java:346) at com.android.okhttp.internal.DiskLruCache.open(DiskLruCache.java:239) at com.android.okhttp.HttpResponseCache.<init>(HttpResponseCache.java:140) at android.net.http.HttpResponseCache.install(HttpResponseCache.java:199)

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    12 times, last one,
    PierrePierre
    1 times, last one,
    AravindAravind
    2 times, last one,
    Unknown UserUnknown User
    2 times, last one,
    rafaelrafael
    2 times, last one,
    96 more bugmates