How to solve an error of “Manifest merger failed : Attribute application@appComponentFactory”Android design support library for API 28 (P) not workingManifest merger failed: Attribute application@appComponentFactoryHow do I pass data between Activities in Android application?Android design support library for API 28 (P) not workingAndroid Manifest Merger fails after adding Dependency com.google.android.materialI have an gradle error everytime I run the appManifest merger failed: Due to application@appComponentFactorybuilding Android java code using androidx, dagger2, butterknife doesnt buildAndroid: Manifest merger failed CoreComponentFactoryManifest merger failed, when adding the butterknife libraryNotification.setSound() isn't working with proguardAndroid - “Manifest Merger Failed” Error after implementing Stripe library
How to prevent bad sectors?
How bitcoin nodes update UTXO set when their latests blocks are replaced?
Is this story about US tax office reasonable?
Which one below is grammatically correct?
Graph with same number of edges and vertices is a loop?
Is there any use case for the bottom type as a function parameter type?
Can't remember the name of this game
How do you say “buy” in the sense of “believe”?
PETG layer adhesion
Placing bypass capacitors after VCC reaches the IC
Are there situations when self-assignment is useful?
Geological aftereffects of an asteroid impact on a large mountain range?
Why do Russians call their women expensive ("дорогая")?
Array Stutter Implementation
Command to Search for Filenames Exceeding 143 Characters?
How do I align equations in three columns, justified right, center and left?
How to capture more stars?
What environment would goblins be best adapted for?
Why does the 6502 have the BIT instruction?
What do different value notes on the same line mean?
How do I subvert the tropes of a train heist?
What is the 中 in ダウンロード中?
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
Employer demanding to see degree after poor code review
How to solve an error of “Manifest merger failed : Attribute application@appComponentFactory”
Android design support library for API 28 (P) not workingManifest merger failed: Attribute application@appComponentFactoryHow do I pass data between Activities in Android application?Android design support library for API 28 (P) not workingAndroid Manifest Merger fails after adding Dependency com.google.android.materialI have an gradle error everytime I run the appManifest merger failed: Due to application@appComponentFactorybuilding Android java code using androidx, dagger2, butterknife doesnt buildAndroid: Manifest merger failed CoreComponentFactoryManifest merger failed, when adding the butterknife libraryNotification.setSound() isn't working with proguardAndroid - “Manifest Merger Failed” Error after implementing Stripe library
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
My build.gradle Project
apply plugin: 'com.android.application'
android
compileSdkVersion 28
defaultConfig
applicationId "com.example.blogapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
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'
// firebase core
implementation 'com.google.firebase:firebase-core:16.0.1'
// firebase auth
implementation 'com.google.firebase:firebase-auth:16.0.1'
// firebase storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
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'
// Design library for Coordinator Layout and Toolbars
implementation 'com.android.support:design:28.0.0'
apply plugin: 'com.google.gms.google-services'
This is my build.gradle project
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activities.HomeActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom"
android:id="@+id/fragment_container" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom"
android:layout_alignParentBottom="true"
>
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
app:itemIconTint="@color/colorAccent"
app:labelVisibilityMode="unlabeled"
android:background="?android:attr/windowBackground"
app:menu="@menu/bottom_navigation">
</android.support.design.widget.BottomNavigationView>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
my Activity_home.xml
my error :
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.1.0-alpha03] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-25:19 to override.
I can't solve even though i already try all things. Even though I add these two lines of code in application tag in manifest.xml.
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString"
but it didn't work, after that show error more.
How can I solve this?
Manifest merger failed: Attribute application@appComponentFactory
Android design support library for API 28 (P) not working
android
add a comment |
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
My build.gradle Project
apply plugin: 'com.android.application'
android
compileSdkVersion 28
defaultConfig
applicationId "com.example.blogapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
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'
// firebase core
implementation 'com.google.firebase:firebase-core:16.0.1'
// firebase auth
implementation 'com.google.firebase:firebase-auth:16.0.1'
// firebase storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
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'
// Design library for Coordinator Layout and Toolbars
implementation 'com.android.support:design:28.0.0'
apply plugin: 'com.google.gms.google-services'
This is my build.gradle project
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activities.HomeActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom"
android:id="@+id/fragment_container" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom"
android:layout_alignParentBottom="true"
>
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
app:itemIconTint="@color/colorAccent"
app:labelVisibilityMode="unlabeled"
android:background="?android:attr/windowBackground"
app:menu="@menu/bottom_navigation">
</android.support.design.widget.BottomNavigationView>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
my Activity_home.xml
my error :
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.1.0-alpha03] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-25:19 to override.
I can't solve even though i already try all things. Even though I add these two lines of code in application tag in manifest.xml.
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString"
but it didn't work, after that show error more.
How can I solve this?
Manifest merger failed: Attribute application@appComponentFactory
Android design support library for API 28 (P) not working
android
add a comment |
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
My build.gradle Project
apply plugin: 'com.android.application'
android
compileSdkVersion 28
defaultConfig
applicationId "com.example.blogapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
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'
// firebase core
implementation 'com.google.firebase:firebase-core:16.0.1'
// firebase auth
implementation 'com.google.firebase:firebase-auth:16.0.1'
// firebase storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
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'
// Design library for Coordinator Layout and Toolbars
implementation 'com.android.support:design:28.0.0'
apply plugin: 'com.google.gms.google-services'
This is my build.gradle project
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activities.HomeActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom"
android:id="@+id/fragment_container" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom"
android:layout_alignParentBottom="true"
>
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
app:itemIconTint="@color/colorAccent"
app:labelVisibilityMode="unlabeled"
android:background="?android:attr/windowBackground"
app:menu="@menu/bottom_navigation">
</android.support.design.widget.BottomNavigationView>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
my Activity_home.xml
my error :
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.1.0-alpha03] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-25:19 to override.
I can't solve even though i already try all things. Even though I add these two lines of code in application tag in manifest.xml.
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString"
but it didn't work, after that show error more.
How can I solve this?
Manifest merger failed: Attribute application@appComponentFactory
Android design support library for API 28 (P) not working
android
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
My build.gradle Project
apply plugin: 'com.android.application'
android
compileSdkVersion 28
defaultConfig
applicationId "com.example.blogapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
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'
// firebase core
implementation 'com.google.firebase:firebase-core:16.0.1'
// firebase auth
implementation 'com.google.firebase:firebase-auth:16.0.1'
// firebase storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
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'
// Design library for Coordinator Layout and Toolbars
implementation 'com.android.support:design:28.0.0'
apply plugin: 'com.google.gms.google-services'
This is my build.gradle project
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activities.HomeActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom"
android:id="@+id/fragment_container" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom"
android:layout_alignParentBottom="true"
>
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
app:itemIconTint="@color/colorAccent"
app:labelVisibilityMode="unlabeled"
android:background="?android:attr/windowBackground"
app:menu="@menu/bottom_navigation">
</android.support.design.widget.BottomNavigationView>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
my Activity_home.xml
my error :
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.1.0-alpha03] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-25:19 to override.
I can't solve even though i already try all things. Even though I add these two lines of code in application tag in manifest.xml.
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString"
but it didn't work, after that show error more.
How can I solve this?
Manifest merger failed: Attribute application@appComponentFactory
Android design support library for API 28 (P) not working
android
android
edited Mar 24 at 13:11
halfer
14.9k759121
14.9k759121
asked Mar 24 at 7:41
MANTAP NARAMANTAP NARA
15
15
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Since you are not using androidx you don't need
implementation com.google.android.material:material
remove this line from gradle.
For androidx
com.google.android.material:material
should be used, and if you are using support library
com.android.support:design
is enough.
add a comment |
Adding the below properties in your gradle.properties file can resolve your problem.
android.useAndroidX=true
android.enableJetifier=true
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55321674%2fhow-to-solve-an-error-of-manifest-merger-failed-attribute-applicationappcomp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Since you are not using androidx you don't need
implementation com.google.android.material:material
remove this line from gradle.
For androidx
com.google.android.material:material
should be used, and if you are using support library
com.android.support:design
is enough.
add a comment |
Since you are not using androidx you don't need
implementation com.google.android.material:material
remove this line from gradle.
For androidx
com.google.android.material:material
should be used, and if you are using support library
com.android.support:design
is enough.
add a comment |
Since you are not using androidx you don't need
implementation com.google.android.material:material
remove this line from gradle.
For androidx
com.google.android.material:material
should be used, and if you are using support library
com.android.support:design
is enough.
Since you are not using androidx you don't need
implementation com.google.android.material:material
remove this line from gradle.
For androidx
com.google.android.material:material
should be used, and if you are using support library
com.android.support:design
is enough.
answered Mar 24 at 7:47
Roshaan FarrukhRoshaan Farrukh
19317
19317
add a comment |
add a comment |
Adding the below properties in your gradle.properties file can resolve your problem.
android.useAndroidX=true
android.enableJetifier=true
add a comment |
Adding the below properties in your gradle.properties file can resolve your problem.
android.useAndroidX=true
android.enableJetifier=true
add a comment |
Adding the below properties in your gradle.properties file can resolve your problem.
android.useAndroidX=true
android.enableJetifier=true
Adding the below properties in your gradle.properties file can resolve your problem.
android.useAndroidX=true
android.enableJetifier=true
answered Mar 24 at 8:06
Nitheesh ksNitheesh ks
11
11
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55321674%2fhow-to-solve-an-error-of-manifest-merger-failed-attribute-applicationappcomp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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