add ‘tools:replace=”Android:value”‘ to element at AndroidManifest

Problem is that all support libraries with same version and major version has to match compile SDK version.

So try to force a specific support library version.
Put this at the end of your app module in build.gradle.

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.0'
            }
        }
    }
}

Leave a Comment