You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** outputStream = new FileOutputStream(new File(outputUri.getPath())); **
can not use new File with path to create FileOutputStream on Android 10.
E/BitmapWorkerTask: Copying failed java.io.FileNotFoundException: /external/images/media/5184: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:496) at java.io.FileOutputStream.<init>(FileOutputStream.java:235) at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:177) at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:155) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:85) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36) 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) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Linux.open(Native Method) at libcore.io.ForwardingOs.open(ForwardingOs.java:167) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252) at libcore.io.ForwardingOs.open(ForwardingOs.java:167) at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7581) at libcore.io.IoBridge.open(IoBridge.java:482) at java.io.FileOutputStream.<init>(FileOutputStream.java:235) at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:177) at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:155) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:85) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36) 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)
The text was updated successfully, but these errors were encountered:
Copying failed with FileNotFoundException.
Android 10 , oneplus 6.
** outputStream = new FileOutputStream(new File(outputUri.getPath())); **
can not use new File with path to create FileOutputStream on Android 10.
E/BitmapWorkerTask: Copying failed java.io.FileNotFoundException: /external/images/media/5184: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:496) at java.io.FileOutputStream.<init>(FileOutputStream.java:235) at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:177) at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:155) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:85) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36) 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) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Linux.open(Native Method) at libcore.io.ForwardingOs.open(ForwardingOs.java:167) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252) at libcore.io.ForwardingOs.open(ForwardingOs.java:167) at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7581) at libcore.io.IoBridge.open(IoBridge.java:482) at java.io.FileOutputStream.<init>(FileOutputStream.java:235) at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:177) at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:155) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:85) at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36) 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)
The text was updated successfully, but these errors were encountered: