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

前端 未结 7 558
小鲜肉
小鲜肉 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:53

    Try to change the Firebase Versions in build.gradle. It works to me!

    The Versions must be the same:

    compile 'com.google.firebase:firebase-analytics:9.2.0'
    compile 'com.google.firebase:firebase-messaging:9.2.0'
    compile 'com.google.firebase:firebase-core:9.2.0'
    

提交回复
热议问题