No static method zzUr() in Firebase when I try to use Analytics with Notifications

前端 未结 7 560
小鲜肉
小鲜肉 2020-12-09 15:41

I\'m starting to use the Firebase Cloud Messaging.

I have only the example code of the guide to use the Notifications and Analytics. If I don\'t install Analytics n

7条回答
  •  执念已碎
    2020-12-09 15:44

    I had the same issue, as others said I used the same version for all firebase libraries, but it didn't worked:

    compile 'com.google.firebase:firebase-core:9.6.0'
    compile 'com.google.firebase:firebase-messaging:9.6.0'
    

    I found that I must use the same version for play-services :

    compile 'com.google.android.gms:play-services-analytics:9.6.0'
    compile 'com.google.android.gms:play-services-base:9.6.0'
    compile 'com.google.android.gms:play-services-gcm:9.6.0'
    

提交回复
热议问题