All the AndroidX versions different from the compile

I've had similar issue, just solved it using this inside app/build.gradle

configurations.all {
    resolutionStrategy {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'androidx.core') {
                details.useVersion "1.0.1"
            }
            if (details.requested.group == 'androidx.lifecycle') {
                details.useVersion "2.0.0"
            }
            if (details.requested.group == 'androidx.versionedparcelable') {
                details.useVersion "1.0.0"
            }
            if (details.requested.group == 'androidx.fragment') {
                details.useVersion "1.0.0"
            }
            if (details.requested.group == 'androidx.appcompat') {
                details.useVersion "1.0.1"
            }
        }
    }
}

If the problem persists, you might want to upgrade the gradle version in android/build.grandle

Change:

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
}

To:

dependencies {
    classpath 'com.android.tools.build:gradle:3.3.1'//latest version
}

You should also update your Kotlin version.

Tags:

Flutter