java.io.filenotfoundexception open failed eacces (permission denied) on device

后端 未结 11 1889
萌比男神i
萌比男神i 2020-12-08 22:03

The following code which consists of downloading a file from a server and save it in the storage works fine when the device has an internal storage.
But when I tried it

11条回答
  •  生来不讨喜
    2020-12-08 22:29

    Did you try it on emulator? Check the properties if it has an SD card. I had the same problem, and it was because the emulator did not have an SD card. Check if yours has or not.

提交回复
热议问题