Crop picture with com.github.yalantis:ucrop:2.2.8-native crop to prompt "/photo/Pictures/20240312_210716113.jpg: open failed: ENOENT (No such file or directory)"
github2136 opened this issue · 0 comments
Using com. Making. Yalantis: ucrop: 2.2.8 - native cutting image when prompted
Copying failed
java.io.FileNotFoundException: /photo/Pictures/20240312_210716113.jpg: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.(FileOutputStream.java:235)
at java.io.FileOutputStream.(FileOutputStream.java:186)
at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:181)
at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:159)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:88)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:37)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
View from the source code of BitmapLoadTask
is copyFile
function
outputStream = new FileOutputStream(new File(outputUri.getPath()));
, caused by the same action in com. Making. Yalantis: ucrop: 2.2.8 and there is no problem