首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >清单合并在版本冲突之间失败

清单合并在版本冲突之间失败
EN

Stack Overflow用户
提问于 2018-04-12 09:36:43
回答 1查看 309关注 0票数 0

错误

错误:任务':chat-sdk-firebase-ui:processDebugAndroidTestManifest'.执行失败清单合并失败:属性meta-data#android.support.VERSION@value value=(26.0.2)来自com.android.support:support-v13:26.0.2 AndroidManifest.xml:28:13-35也出现在com.android.Support:设计:26.1.0 AndroidManifest.xml:28:13-35 value=(26.1.0)。建议:在manifestMerger5400804966500911997.xml:26:9-28:38的元素中添加‘tools:replace=’android:value‘以覆盖。

build.gradle文件是

代码语言:javascript
复制
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
    applicationId "com.example.bhatti.chatsdk"
    minSdkVersion 16
    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'
    }
 }
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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.0.2'

compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-annotations:26.0.0-alpha1'
}
 apply plugin: 'com.google.gms.google-services'

build.gradle文件(ChatApp)

代码语言:javascript
复制
buildscript {
repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
    jcenter()
}
dependencies{

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

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

gradle.properties文件是

代码语言:javascript
复制
MIN_SDK = 16
ANDROID_BUILD_TARGET_SDK_VERSION = 26
ANDROID_COMPILE_SDK_VERSION = 26
ANDROID_BUILD_TOOLS_VERSION = 26.0.2
GOOGLE_SERVICES_VERSION = 11.0.4
ANDROID_SUPPORT_VERSION = 26.0.2

Manifest.xml文件

代码语言:javascript
复制
 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.bhatti.chatsdk">

<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">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

EN

回答 1

Stack Overflow用户

发布于 2018-04-12 10:03:16

使用

代码语言:javascript
复制
compile 'com.android.support:support-annotations:26.0.2'

而不是

代码语言:javascript
复制
compile 'com.android.support:support-annotations:26.0.0-alpha1'
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49793102

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档