Glide: 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

Created on 17 Oct 2019  路  7Comments  路  Source: bumptech/glide


Glide Version:


Integration libraries:


Device/Android Version:


Issue details / Repro steps / Use case background:


Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...


Layout XML:

<FrameLayout xmlns:android="...


Stack trace / LogCat:

paste stack trace and/or log here
stale

Most helpful comment

I was getting below build error when I used Glide(4.10.0) in my non-Androidx project.

Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:10:9-19 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:10:12-26 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:5:3-8:8 to override.

Issue resolution:
Looks like from Glide 4.10.0, glide uses AndroidX and there can't be both Androidx and non-androidx libraries in a project. So to resolve this issue:

  1. Use either Glide - 4.9.0 in non-androidx project.
  2. Or migrate your project to AndroidX

All 7 comments

is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).

Did you use androidx ?

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

implementation 'com.android.support:appcompat-v7:28.0.0'
.
.
.
implementation 'com.github.bumptech.glide:glide:4.10.0'

I've got Manifest merger failed after updated glide to 4.10.0, it might caused by it's using androidx support lib. So I stay the old glide:4.9.0'

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

I was getting below build error when I used Glide(4.10.0) in my non-Androidx project.

Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:10:9-19 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:10:12-26 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:5:3-8:8 to override.

Issue resolution:
Looks like from Glide 4.10.0, glide uses AndroidX and there can't be both Androidx and non-androidx libraries in a project. So to resolve this issue:

  1. Use either Glide - 4.9.0 in non-androidx project.
  2. Or migrate your project to AndroidX
Was this page helpful?
0 / 5 - 0 ratings

Related issues

FooBarBacon picture FooBarBacon  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

piedpiperlol picture piedpiperlol  路  3Comments

Morteza-Rastgoo picture Morteza-Rastgoo  路  3Comments

technoir42 picture technoir42  路  3Comments