Open ssowmoss opened 5 years ago
Decided to use your library on kotlin to crop images. However On activity result(request code is not being called) in my fragment . This is my code :
when (requestCode) {
CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE -> {
Log.e(TAG, "********************* crop request code")
val result = CropImage.getActivityResult(data)
when (resultCode) {
RESULT_OK -> {
imageUri = result.uri
Log.e(TAG, "********************* $imageUri")
}
CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE -> Log.e(TAG, "********************* $result.error")
else -> Log.e(TAG, "********************* something went wrong $resultCode")
}
}
@ssowmoss I face the same issue. Figured out that you have to use androidX to resolve the issue :( But unfortunately I can't upgrade to androidX yet cuz some of my other libraries depend on api 28.
following solution worked for me; using this library with Kotlin:
In build.gradle (Module: app) replace this: api 'com.theartofdev.edmodo:android-image-cropper:2.8.+' with this: api 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
It may give you warning but works for me.
Same Issue here
Thanks so much @BilalRabbani, it worked me also.
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.theartofdev.edmodo:android-image-cropper:2.7.+.
Bug Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91