hnvn / flutter_image_cropper

A Flutter plugin for Android and iOS supports cropping images
971 stars 374 forks source link

crashing in the android app #82

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello friend, I know this plugin is super cool in flutter community, But since I upgraded the image_cropper plugin, it is crashing the application. Please solve the issue.

hnvn commented 4 years ago

Can you give me some logs?

Sylvain17 commented 4 years ago

Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/widget/TintableCompoundDrawablesView;

Note : Flutter version 1.9.1+hotfix.4

hnvn commented 4 years ago

I believe it's same as #78

Sylvain17 commented 4 years ago

Yes, same bug and same solution is working.

To fix this issue, just comment or remove this lines :

subprojects {
        project.configurations.all {
            resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'androidx.core'
                        && !details.requested.name.contains('androidx') ) {
                    details.useVersion "1.0.1"
                }
            }
        }
    }

Thx

ghost commented 4 years ago

so what do you mean? add this lines or not in android gradle? @hnvn @Sylvain17

subprojects { project.configurations.all { resolutionStrategy.eachDependency { details -> if (details.requested.group == 'androidx.core' && !details.requested.name.contains('androidx') ) { details.useVersion "1.0.1" } } } }

Sylvain17 commented 4 years ago

Lol, remove this lines !

ghost commented 4 years ago

Thanks, friend, I solved the issue.

momoDragon commented 4 years ago

This solved my issue too. Thanks a million. and thanks @hnvn for the plugin

hnvn commented 4 years ago

You guys, please look at existed issues before create a new one. Thanks

momoDragon commented 4 years ago

You guys, please look at existed issues before create a new one. Thanks

My apologies