Execution failed for task ':app:processDebugManifest'.
See original GitHub issueAfter having added Butterknife, I get the following error when attempting to run my project:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> 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 <application> element at AndroidManifest.xml:5:5-18:19 to override.
Any ideas?
Project:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Module:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "me.awebster.tipcalculator"
minSdkVersion 15
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'
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'
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Gradle: Execution failed for task ':processDebugManifest'
Found the solution to this problem: gradle assemble -info gave me the hint that the Manifests have different SDK Versions and cannot be...
Read more >Different Ways to fix "Execution failed for task - GeeksforGeeks
Different Ways to fix “Execution failed for task ':processDebugManifest'” in Android Studio ; Method 1: Adding a code snippet in your build.
Read more >Execution failed for task ':processDebugManifest' - ABBYY
When you try to execute the application, the following error appears: Execution failed for task ':processDebugManifest'.
Read more >Gradle: Execution failed for task ':processDebugManifest ...
xml:1] Could not find element /manifest/application. ... Caused by: java.lang.RuntimeException: Manifest merging failed. See ...
Read more >app:processDebugManifest fails with gradle configuration cache
Task :app:processDevDebugManifest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The error happened to me while installing the “React-Native-Image-Picker” library. I was able to solve it like this:
Error:
> Task :app:processDebugManifest FAILED
I accessed this path which appeared to me in the complete error:
..\node_modules\react-native-image-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml
When reviewing the file I identified the versions requested by the library:
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29" />
I modified in
/android/app/build.gradle
the following lines of code:Hope this can help you
i solved this build fail with : compileOptions { sourceCompatibility = ‘1.8’ targetCompatibility = ‘1.8’ }