Material-components-android: Can't install

Created on 9 Aug 2018  路  3Comments  路  Source: material-components/material-components-android

Can't install this by adding to build.gradle.

Fails with Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0-rc01] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0-rc01] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-19:19 to override.

tried solution given above, still no luck.

Most helpful comment

@vcapra1 if you are installing material design components by adding
implementation 'com.google.android.material:material:1.0.0-beta01'

you should be removing all com.android.supportdependencies

You should not use the com.android.support and com.google.android.material dependencies in your app at the same time.

See #177

See Getting started
https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md

All 3 comments

solved. sorry. thanks.

@TdevM How did you solve this?

@vcapra1 if you are installing material design components by adding
implementation 'com.google.android.material:material:1.0.0-beta01'

you should be removing all com.android.supportdependencies

You should not use the com.android.support and com.google.android.material dependencies in your app at the same time.

See #177

See Getting started
https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MrCreeper1008 picture MrCreeper1008  路  3Comments

gabrielemariotti picture gabrielemariotti  路  3Comments

danielwilson1702 picture danielwilson1702  路  3Comments

sepehr-alipour picture sepehr-alipour  路  3Comments

JakeWharton picture JakeWharton  路  3Comments