Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Manifest error After add to project #51

Open
amirtorabi opened this issue Apr 29, 2019 · 1 comment
Open

Manifest error After add to project #51

amirtorabi opened this issue Apr 29, 2019 · 1 comment

Comments

@amirtorabi
Copy link

when i add dependency and use expanision panel in my project i have got this error in manifest:

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
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:6:5-27:19 to override.

@kmelodi
Copy link

kmelodi commented May 16, 2019

I got a similar problem when using a new library,
Problems are solved in two ways.

1- Using the

implementation of 'com.github.florent37: expansionpanel: 1.1.1'

  Instead of

implementing 'com.github.florent37: expansionpanel: 1.2.2'

2- I fixed the problem by migrating the project to androidx

The new android studio does the migration smoothly just click on Refactor-->migrate to androidx-->It will ask you to back up-->then do refactor.

Watch this tutorial, hope it helps.
https://www.youtube.com/watch?v=0FZ_eUIsLTg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants