如何修复清单合并失败

用户8256287

我导入了 GoogleMapsV2WithActionBarSherlock eclipse 项目,遇到了

错误:任务 ':googleMapsV2:processDebugManifest' 的执行失败。清单合并失败:来自 [GoogleMapsV2WithActionBarSherlock:androidmapsutils:unspecified] AndroidManifest.xml:8:13-29 的属性 meta-data#com.google.android.gms.version@value value=() 也出现在 [com.google. android.gms:play-services-basement:11.0.2] AndroidManifest.xml:20:66-119 value=(@integer/google_play_services_version)。建议:将 'tools:replace="android:value"' 添加到 AndroidManifest.xml:6:9-8:32 的元素以覆盖。

有没有人知道它是什么以及我该如何解决?

以下是错误列表。

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'
}
沙利什班迪尔

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

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章