
错误
错误:任务':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文件是
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)
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文件是
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.2Manifest.xml文件
<?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>
发布于 2018-04-12 10:03:16
使用
compile 'com.android.support:support-annotations:26.0.2'而不是
compile 'com.android.support:support-annotations:26.0.0-alpha1'https://stackoverflow.com/questions/49793102
复制相似问题