For the following two errors
Java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper
and
Manifest merger failed : Attribute meta – data# Android. Support. VERSION @ value value = (25.3.0) from [com. Android. Support: support – v13:25.3.0] Androidmanifest.xml: – 31 through this is also the present at [com. Android. Support: preference – v7:26.0.0-1] Androidmanifest.xml: devising – 38 value = (26.0.0-1). The Suggestion: add ‘tools:replace=”android:value”‘ to element at AndroidManifest.xml:25:5-27:34 to override.
Gradle merges multiple versions of a supported or other reference library. Gradle merges multiple versions of a support or other reference library. Gradle merges multiple versions of a support or other reference library. Or if the Class is missing, the solution is to force the same version of the library:
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested if (requested.group == 'com.android.support') { if (! Requested. Name. StartsWith (" multidex ")) {the useVersion '25.3.0'}}Copy the code
}
}