Exception 'open failed: EACCES (Permission denied)' on Android

前端 未结 30 1623
[愿得一人]
[愿得一人] 2020-11-22 00:59

I am getting

open failed: EACCES (Permission denied)

on the line OutputStream myOutput = new FileOutputStream

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 01:35

    In addition to all the answers, make sure you're not using your phone as a USB storage.

    I was having the same problem on HTC Sensation on USB storage mode enabled. I can still debug/run the app, but I can't save to external storage.

提交回复
热议问题