Java 修复版本冲突(谷歌服务插件)
请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为11.8.0来修复版本冲突Java 修复版本冲突(谷歌服务插件),java,android,android-studio,Java,Android,Android Studio,请通过更新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.squ
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'
您需要将Firebase版本更新为最新版本 注:firebase的最新版本为15
<framework src="com.google.firebase:firebase-core:11.0.4" />
<framework src="com.google.firebase:firebase-messaging:11.0.4" />