我导入了GoogleMapsV2WithActionBarSherlock eclipse项目并遇到了
错误:任务':googleMapsV2:processDebugManifest'执行失败。 清单合并失败:属性meta-data#com.google.android.gms.version@value value =()来自 [GoogleMapsV2WithActionBarSherlock:androidmapsutils:未规定] AndroidManifest.xml:8:13-29也出现在 [com.google.android.gms:播放服务地下室:11.0.2] AndroidManifest.xml中:20:66-119 值=(@整数/ GOOGLE_PLAY_SERVICES_VERSION)。建议:添加 '工具:替换="机器人:值"'到元素 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'
}
答案 0 :(得分:0)
在您的清单中添加tools:replace="android:value"
到<application>
代码
答案 1 :(得分:0)
检查您的build.gradle(app)minSdkVersion 14
和
compile 'com.google.android.gms:play-services-maps:11.0.2'