请修改版本冲突,方法是更新google-services插件的版本(https://bintray.com/android/android-tools/com.google.gms.google-services/提供有关最新版本的信息)或将com.google.android.gms版本更新为11.8.0
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.firebaseui:firebase-ui-database:1.2.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.google.firebase:firebase-core:10.2.0'
implementation 'com.google.firebase:firebase-database:10.2.0'
implementation'com.google.android.gms:play-services-ads:11.8.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support:cardview-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-v4:26'
implementation 'com.google.firebase:firebase-ads:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
}
apply plugin: 'com.google.gms.google-services'
答案 0 :(得分:0)
您需要将Firebase版本更新为最新版本
注意:最新的firebase版本是15
答案 1 :(得分:0)
如果将其用于离子/ cordova,请按照以下步骤操作。 删除Android平台 在FCMPlugin.gradle(插件文件夹)上,像这样编辑:
classpath'com.google.gms:google-services:4.1.0' 编译'com.google.firebase:firebase-core:11.0.4'
然后在plugin.xml文件中
<framework src="com.google.firebase:firebase-core:11.0.4" />
<framework src="com.google.firebase:firebase-messaging:11.0.4" />