Подтвердить что ты не робот

Как исправить. Ошибка: выполнение выполнено для задачи ': app: processDebugManifest'. VERSION @значение value = (26.1.0)

Ошибка: выполнение выполнено для задачи ': app: processDebugManifest'.

Не удалось выполнить манифест слияния: атрибут meta-data#[email protected] value = (26.1.0) из [com.android.support:design:26.1.0] AndroidManifest.xml: 28: 13-35     также присутствует в [com.android.support:support-v13:26.0.1] AndroidManifest.xml: 28: 13-35 value = (26.0.1).     Предложение: добавить "tools: replace =" android: значение "" в элемент на AndroidManifest.xml: 26: 9-28: 38 для переопределения.

build.gradle: Project

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'com.google.gms:google-services:3.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

build.gradle: модуль

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "com.jystinz.roomdatabase"
        minSdkVersion 23
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

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.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:design:26.1.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.android.support:recyclerview-v7:26.1.0'
    testCompile 'junit:junit:4.12'

    // reactive Network
    compile 'com.github.pwittchen:reactivenetwork-rx2:0.11.0'

    // room persistence
    compile 'android.arch.persistence.room:runtime:1.0.0-alpha9'
    compile 'android.arch.persistence.room:rxjava2:1.0.0-alpha9'
    annotationProcessor 'android.arch.persistence.room:compiler:1.0.0-alpha9'

    // images
    compile 'com.squareup.picasso:picasso:2.5.2'

    // barcode
    compile 'com.github.KingsMentor:MobileVisionBarcodeScanner:2.0.0'

    // retrofit2
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
    compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'

    // gps
    compile 'com.google.android.gms:play-services-location:11.4.2'

    // dialog
    compile 'com.avast:android-styled-dialogs:2.3.3'
    compile 'com.afollestad.material-dialogs:core:0.9.4.7'
}

- → > Изображения.

Спасибо.

4b9b3361

Ответ 1

Просто добавьте в свой dependencies

compile 'com.android.support:support-v13:26.1.0'

Ответ 2

Библиотека com.android.support:support-v13:26.0.1 имеет метатег внутри своего манифеста

 <meta-data
        android:name="android.support.VERSION"
        android:value="26.0.1" />

Ваша другая библиотека com.android.support:design:26.1.0 имеет этот метатег

 <meta-data
        android:name="android.support.VERSION"
        android:value="26.1.0" />

Когда мы создаем библиотеку приложения, манифесты объединятся, поэтому у нескольких библиотек будет один и тот же метатег с разным значением. это вызовет конфликт.

Если вы хотите избавиться от этого, добавьте этот метатег в манифест приложения.

<meta-data
        tools:replace="android:value"
        android:name="android.support.VERSION"
        android:value="26.1.0" />

Ответ 3

**

<**application
....
..... <meta-data
            tools:replace="android:value"
            android:name="android.support.VERSION"
            android:value="26.1.0" />
</application**

** просто добавьте это, чтобы избавиться от конфликта