如何修复清单合并失败

How to fix Manifest merger failed

导入GoogleMapsV2WithActionBarSherlock eclipse项目遇到

Error:Execution failed for task ':googleMapsV2:processDebugManifest'. Manifest merger failed : Attribute meta-data#com.google.android.gms.version@value value=() from [GoogleMapsV2WithActionBarSherlock:androidmapsutils:unspecified] AndroidManifest.xml:8:13-29 is also present at [com.google.android.gms:play-services-basement:11.0.2] AndroidManifest.xml:20:66-119 value=(@integer/google_play_services_version). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:6:9-8:32 to override.

是否有人知道它是什么以及我该如何修复它?

这是错误列表。

googleMapsV2 build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"

    defaultConfig {
        applicationId "com.ecs.google.maps.v2.actionbarsherlock"
        minSdkVersion 14
        targetSdkVersion 17
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile project(':androidmapsutils')
    compile project(':library')
    compile 'com.google.code.gson:gson:2.1'
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    compile 'com.android.support:support-v4:18.0.0'
    compile 'com.android.support:gridlayout-v7:18.0.0'
    compile 'com.google.android.gms:play-services:+'
    compile files('libs/commons-logging-1.1.1.jar')
    compile files('libs/google-http-client-1.15.0-rc.jar')
    compile files('libs/google-http-client-android-1.15.0-rc.jar')
    compile files('libs/google-http-client-jackson2-1.15.0-rc.jar')
    compile files('libs/httpclient-4.0.1.jar')
    compile files('libs/httpcore-4.0.1.jar')
    compile files('libs/jackson-core-2.1.3.jar')
    compile files('libs/jackson-core-asl-1.9.11.jar')
}

androidmaputils build.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"

    defaultConfig {
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:21.0.0'
    compile 'com.google.android.gms:play-services-maps:11.0.2'
}

GoogleMapsV2WithActionBarSherlock build.gradle

// 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.2.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

PagerTabSlidingTabStrip build.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 17
    buildToolsVersion "26.0.0"

    defaultConfig {
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:18.0.0'
}

tools:replace="android:value" 添加到清单的 <application> 标记末尾

检查您的 build.gradle(app) minSdkVersion 14

compile 'com.google.android.gms:play-services-maps:11.0.2'