Manifest merger failed with multiple errors when using lottie












1















Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91



Here is my gradle file:



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'

// RxAndroid
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

implementation 'com.android.support:customtabs:28.0.0-alpha3'
implementation "com.airbnb.android:lottie:2.8.0"

}


Manifest



<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.learnapplication">
<uses-sdk tools:overrideLibrary="android.support.customtabs"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">

</activity>
<activity android:name=".CustomTabActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>









share|improve this question

























  • Can you show manifest?

    – SkypeDogg
    Nov 22 '18 at 10:29











  • I have edited the question and added the manifest code

    – Akanksha Paul
    Nov 24 '18 at 6:47











  • Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

    – Mohsen
    Nov 24 '18 at 6:50











  • No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

    – Akanksha Paul
    Nov 24 '18 at 6:56


















1















Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91



Here is my gradle file:



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'

// RxAndroid
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

implementation 'com.android.support:customtabs:28.0.0-alpha3'
implementation "com.airbnb.android:lottie:2.8.0"

}


Manifest



<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.learnapplication">
<uses-sdk tools:overrideLibrary="android.support.customtabs"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">

</activity>
<activity android:name=".CustomTabActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>









share|improve this question

























  • Can you show manifest?

    – SkypeDogg
    Nov 22 '18 at 10:29











  • I have edited the question and added the manifest code

    – Akanksha Paul
    Nov 24 '18 at 6:47











  • Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

    – Mohsen
    Nov 24 '18 at 6:50











  • No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

    – Akanksha Paul
    Nov 24 '18 at 6:56
















1












1








1








Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91



Here is my gradle file:



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'

// RxAndroid
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

implementation 'com.android.support:customtabs:28.0.0-alpha3'
implementation "com.airbnb.android:lottie:2.8.0"

}


Manifest



<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.learnapplication">
<uses-sdk tools:overrideLibrary="android.support.customtabs"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">

</activity>
<activity android:name=".CustomTabActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>









share|improve this question
















Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91



Here is my gradle file:



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'

// RxAndroid
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

implementation 'com.android.support:customtabs:28.0.0-alpha3'
implementation "com.airbnb.android:lottie:2.8.0"

}


Manifest



<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.learnapplication">
<uses-sdk tools:overrideLibrary="android.support.customtabs"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">

</activity>
<activity android:name=".CustomTabActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>






android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 '18 at 6:47







Akanksha Paul

















asked Nov 22 '18 at 6:48









Akanksha PaulAkanksha Paul

83




83













  • Can you show manifest?

    – SkypeDogg
    Nov 22 '18 at 10:29











  • I have edited the question and added the manifest code

    – Akanksha Paul
    Nov 24 '18 at 6:47











  • Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

    – Mohsen
    Nov 24 '18 at 6:50











  • No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

    – Akanksha Paul
    Nov 24 '18 at 6:56





















  • Can you show manifest?

    – SkypeDogg
    Nov 22 '18 at 10:29











  • I have edited the question and added the manifest code

    – Akanksha Paul
    Nov 24 '18 at 6:47











  • Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

    – Mohsen
    Nov 24 '18 at 6:50











  • No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

    – Akanksha Paul
    Nov 24 '18 at 6:56



















Can you show manifest?

– SkypeDogg
Nov 22 '18 at 10:29





Can you show manifest?

– SkypeDogg
Nov 22 '18 at 10:29













I have edited the question and added the manifest code

– Akanksha Paul
Nov 24 '18 at 6:47





I have edited the question and added the manifest code

– Akanksha Paul
Nov 24 '18 at 6:47













Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

– Mohsen
Nov 24 '18 at 6:50





Welcome to SO. Try removing -alpha3 from custom tabs dependency then try to rebuild.

– Mohsen
Nov 24 '18 at 6:50













No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

– Akanksha Paul
Nov 24 '18 at 6:56







No it is not working Instead proving me suggestion Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-23:19 to override. But this is also not working

– Akanksha Paul
Nov 24 '18 at 6:56














1 Answer
1






active

oldest

votes


















1














You have no problem with the Gradle or with the manifest, I'm also looking for the solution to this problem and in the manifest you do not have to change anything, rather use as minimum version of the SDK at least 21 and to avoid confiscations, try to go down version of Lottie (I'm using 2.7.0) and try adding in the Gradle this few lines:



implementation ('com.airbnb.android:lottie:2.7.0') {
exclude group: 'com.android.support', module: 'support-v7'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview'
exclude group: 'com.android.support', module: 'transition'
}


Good luck bro! Update me!






share|improve this answer
























  • @AkankshaPaul I'm happy! Thumb up! :D

    – Andrea
    Nov 30 '18 at 13:58











  • Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

    – Gonzalo Ledezma Torres
    Jan 4 at 15:00











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53425291%2fmanifest-merger-failed-with-multiple-errors-when-using-lottie%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You have no problem with the Gradle or with the manifest, I'm also looking for the solution to this problem and in the manifest you do not have to change anything, rather use as minimum version of the SDK at least 21 and to avoid confiscations, try to go down version of Lottie (I'm using 2.7.0) and try adding in the Gradle this few lines:



implementation ('com.airbnb.android:lottie:2.7.0') {
exclude group: 'com.android.support', module: 'support-v7'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview'
exclude group: 'com.android.support', module: 'transition'
}


Good luck bro! Update me!






share|improve this answer
























  • @AkankshaPaul I'm happy! Thumb up! :D

    – Andrea
    Nov 30 '18 at 13:58











  • Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

    – Gonzalo Ledezma Torres
    Jan 4 at 15:00
















1














You have no problem with the Gradle or with the manifest, I'm also looking for the solution to this problem and in the manifest you do not have to change anything, rather use as minimum version of the SDK at least 21 and to avoid confiscations, try to go down version of Lottie (I'm using 2.7.0) and try adding in the Gradle this few lines:



implementation ('com.airbnb.android:lottie:2.7.0') {
exclude group: 'com.android.support', module: 'support-v7'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview'
exclude group: 'com.android.support', module: 'transition'
}


Good luck bro! Update me!






share|improve this answer
























  • @AkankshaPaul I'm happy! Thumb up! :D

    – Andrea
    Nov 30 '18 at 13:58











  • Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

    – Gonzalo Ledezma Torres
    Jan 4 at 15:00














1












1








1







You have no problem with the Gradle or with the manifest, I'm also looking for the solution to this problem and in the manifest you do not have to change anything, rather use as minimum version of the SDK at least 21 and to avoid confiscations, try to go down version of Lottie (I'm using 2.7.0) and try adding in the Gradle this few lines:



implementation ('com.airbnb.android:lottie:2.7.0') {
exclude group: 'com.android.support', module: 'support-v7'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview'
exclude group: 'com.android.support', module: 'transition'
}


Good luck bro! Update me!






share|improve this answer













You have no problem with the Gradle or with the manifest, I'm also looking for the solution to this problem and in the manifest you do not have to change anything, rather use as minimum version of the SDK at least 21 and to avoid confiscations, try to go down version of Lottie (I'm using 2.7.0) and try adding in the Gradle this few lines:



implementation ('com.airbnb.android:lottie:2.7.0') {
exclude group: 'com.android.support', module: 'support-v7'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview'
exclude group: 'com.android.support', module: 'transition'
}


Good luck bro! Update me!







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 27 '18 at 8:39









AndreaAndrea

306




306













  • @AkankshaPaul I'm happy! Thumb up! :D

    – Andrea
    Nov 30 '18 at 13:58











  • Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

    – Gonzalo Ledezma Torres
    Jan 4 at 15:00



















  • @AkankshaPaul I'm happy! Thumb up! :D

    – Andrea
    Nov 30 '18 at 13:58











  • Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

    – Gonzalo Ledezma Torres
    Jan 4 at 15:00

















@AkankshaPaul I'm happy! Thumb up! :D

– Andrea
Nov 30 '18 at 13:58





@AkankshaPaul I'm happy! Thumb up! :D

– Andrea
Nov 30 '18 at 13:58













Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

– Gonzalo Ledezma Torres
Jan 4 at 15:00





Downgrading Lottie version to 2.7.0 and adding these lines helped me. Thanks a lot.

– Gonzalo Ledezma Torres
Jan 4 at 15:00


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53425291%2fmanifest-merger-failed-with-multiple-errors-when-using-lottie%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin