Android Question I can't delete file

Mohd124

New Member
VER: 2.17.3(25010889)
PERMISSION: APP
ABI: arm64-v8a
MODEL: 22101320G
SDK: 34
RELEASE: 14
TARGET_SDK: 28
---StackTrace---
java.io.IOException: close failed: EPERM (Operation not permitted)
at libcore.io.IoBridge.closeAndSignalBlockedThreads(IoBridge.java:313)
at java.io.FileOutputStream.close(FileOutputStream.java:482)
at l.ۚ۠ۜ.ۚ(018C:598)
at l.۫ۥۜ.۟(A97O:32)
at l.ۧ۠ۜ.ۚ(P17P:605)
at l.۫ۖۤ.run(R2BE:363)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by: android.system.ErrnoException: close failed: EPERM (Operation not permitted)
at libcore.io.Linux.close(Native Method)
at libcore.io.ForwardingOs.close(ForwardingOs.java:176)
at libcore.io.BlockGuardOs.close(BlockGuardOs.java:113)
at libcore.io.ForwardingOs.close(ForwardingOs.java:176)
at libcore.io.IoBridge.closeAndSignalBlockedThreads(IoBrid
ge.java:311)
... 10 more
 

josejad

Expert
Licensed User
Longtime User
How can inform you
Lot of times, we can't know what's wrong just reading the error. Please post your code (using [code] ... your code here ... [/code]) to see what you're doing and how you're doing.
Even better and easier for forum people to help if you upload a small project showing the error.


 
Upvote 0

Mohd124

New Member
"java.io.IOException: close failed" means that the file may still be in use and you need to close it first.
But this in use i moved it from where was it to trying to delete it this file before it be problem i was trying to copy it from my phone to external hard drive this file for a game called Fortnite i was trying to copy it to some one the file copy it self in the directory folder
I used app mt manger to explore my files
 
Upvote 0
Top