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

前端 未结 30 1550
[愿得一人]
[愿得一人] 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:44

    It turned out, it was a stupid mistake since I had my phone still connected to the desktop PC and didn't realize this.

    So I had to turn off the USB connection and everything worked fine.

提交回复
热议问题