我正在使用Google Firebase实施身份验证.我收到此错误.如果可能的话,请有人提出解决方案以及解释,以便我理解.
Error:Execution failed for task ‘:app:processDebugManifest’.
Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.1) from [com.android.support:design:26.0.1] AndroidManifest.xml:28:13-35
is also present at [com.android.support:appcompat-v7:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add ‘tools:replace=”android:value”‘ to element at AndroidManifest.xml:26:9-28:38 to override.
以下是我的gradle文件
1.项目模块
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2,模块应用
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.prerak.final_audio_streamer"
minSdkVersion 19
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(dir: 'libs', include: ['*.jar'])
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.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-ads:11.4.0'//advertisements
compile 'com.firebaseui:firebase-ui-auth:2.4.0'// FirebaseUI Auth only
compile'com.google.firebase:firebase-auth:11.4.0'//firebase auth
compile 'com.google.android.gms:play-services:11.4.0'//playservice
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'