Fehler: Ausführung fehlgeschlagen für Task ': app: processDebugManifest'.Wenn ich Abhängigkeiten von Drittanbietern hinzufüge, bekomme ich einen manifesten Merger fail, was soll ich tun, um das zu beheben?
Manifest merger failed : Attribute meta-data#[email protected] value=(26.0.2) from [com.android.support:design:26.0.2] AndroidManifest.xml:28:13-35 is also present at [com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:38 to override. apply plugin: 'com.android.application'
app.gradle Datei
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.dharquissandas.budget"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
allprojects{
repositories{
jcenter()
maven{
url "https://maven.google.com"
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:preference-v7:23.4.0'
compile 'com.android.support:design:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:26.+'
compile 'com.afollestad.material-dialogs:core:0.9.4.7'
compile 'com.afollestad.material-dialogs:commons:0.9.4.7'
testCompile 'junit:junit:4.12'
}
android manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dharquissandas.budget">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".add_expense"
android:label="@string/title_activity_add_expense"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".add_income"
android:label="@string/title_activity_add_income"
android:theme="@style/AppTheme.NoActionBar" />
</application>
</manifest>
Dies funktioniert und dann plötzlich nicht arbeiten, wenn ich auf der App wieder arbeiten wollte. Was muss ich tun, um diesen Fehler zu beheben?
Prüfung und pflegen die gleiche Version der Bibliothek in allen Modulen Ihrer Projekt. Auf die gleiche Weise ist mein Problem behoben. – Suresh