Android 错误:请修复版本冲突

Android 错误:请修复版本冲突,android,firebase,firebase-realtime-database,firebase-authentication,Android,Firebase,Firebase Realtime Database,Firebase Authentication,使用依赖项时,在身份验证或数据库上显示错误。如何解决此问题 dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' //here it shows err

使用依赖项时,在身份验证或数据库上显示错误。如何解决此问题

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
//here it shows error Error:Execution failed for task ':app:processDebugGoogleServices'
请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为11.8.0来修复版本冲突

更改以下内容:

implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.firebase:firebase-auth:11.0.4'
为此:

implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'

所有firebase依赖项都必须是相同的版本

显然,您可以同时使用firebaseAuth和firebase实时数据库。但是您对firebase的gradle依赖项应该是相同的版本。

这帮了我的忙!
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'