Android Version Conflict for Google Services

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 16:46:29
Geethakrishna Juluri

If I am not wrong, Google services have the dependency on the firebase. I think both are conflicting

check this firebase.google.com/docs/android/setup and adjust google services and firebase dependency versions

Also, make sure you have this at the bottom of your build.gradle (app) file:

apply plugin: 'com.google.gms.google-services'

You might have some third party library in your project using the com.google.firebase:firebase-analytics:11.4.2 version of Analytics. Try to find that.

Try changing it from 11.8.0 to 11.4.2 works for me. old values

implementation 'com.google.firebase:firebase-firestore:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'

new values

implementation 'com.google.firebase:firebase-firestore:11.4.2'
implementation 'com.google.firebase:firebase-auth:11.4.2'
implementation 'com.google.firebase:firebase-messaging:11.4.2'

change this

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

to

compile'com.google.firebase:firebase-auth:11.8.0'

and make sure that in your applevel build.gradle all google and firebase dependency version should be the same.

it doesnt works try removing google dependency from applevel build.gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!