Lottie-android: Different version of android support library

Created on 20 Sep 2017  路  2Comments  路  Source: airbnb/lottie-android

My current project uses android support library 25.4.0.
After adding lottie to my module as an dependency (version 2.2.3), it doesn't compile anymore failing at the manifest merger task due to multiple support library versions.

This is the error message:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:design:25.4.0] AndroidManifest.xml:28:13-35
    is also present at [com.android.support:appcompat-v7:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1).
    Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.

All 2 comments

Duplicate of #77

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.0.2'
}
}
}
}
NOTE :Add this to your build.gradle and make sure you are using the same versions as '26.0.2'.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndroidDeveloperLB picture AndroidDeveloperLB  路  4Comments

anitoledo picture anitoledo  路  4Comments

dpmaycry picture dpmaycry  路  3Comments

Nabeel-khalid picture Nabeel-khalid  路  4Comments

hkchakladar picture hkchakladar  路  3Comments