Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

I discovered a bug from version 2.8.0

Open ssowmoss opened this issue 7 years ago • 6 comments

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

ssowmoss avatar Jan 15 '19 07:01 ssowmoss

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")
                    }
}

Yonkokilasi avatar Jan 15 '19 13:01 Yonkokilasi

@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.

sanjeevkarat avatar Feb 04 '19 09:02 sanjeevkarat

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.

BilalRabbani avatar Feb 27 '19 20:02 BilalRabbani

Same Issue here

KarimRedaHassan avatar Apr 11 '19 21:04 KarimRedaHassan

Thanks so much @BilalRabbani, it worked me also.

atsezgi avatar Apr 25 '19 12:04 atsezgi

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.theartofdev.edmodo:android-image-cropper:2.7.+.

Ktirumalsetty avatar Jan 20 '20 10:01 Ktirumalsetty