Good day! I have an error in code in which before I did not mark it. This is my mistake:
Error:(1012, 9) error: constructor Crop in class Crop cannot be applied to given types;
required: Uri,Uri
found: Uri
reason: actual and formal argument lists differ in length
This is the method that marks me the error in new Crop .
private void beginCrop(Uri source) {
// Uri outputUri = Uri.fromFile(new File(registerActivity.getCacheDir(),
// "cropped"));
Uri outputUri = Uri.fromFile(new File(Environment
.getExternalStorageDirectory(), (Calendar.getInstance()
.getTimeInMillis() + ".jpg")));
new Crop(source).output(outputUri).asSquare().start(activity);
}
I hope you give me an idea of how to solve it. Gracis.