Closed chandanitnou closed 6 years ago
you just try this
UCrop.of(inputUri, outputUri) .withAspectRatio(1, 1) .withMaxResultSize(100, 100) .start(getActivity());
and
outputUri = Uri.fromFile(file)
Hi did you find this solution?
Suggesting to add little hack to the library: https://stackoverflow.com/a/42437379/5593959
if(Build.VERSION.SDK_INT>=24){
try{
Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure");
m.invoke(null);
}catch(Exception e){
e.printStackTrace();
}
}
fixed at last release
Hello uCrop team i got the Exception bellow:
D/BitmapWorkerTask: copyFile E/BitmapWorkerTask: Copying failed java.io.FileNotFoundException: /
please fix it thanks.