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

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

    try this:

    add

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

    and change this:

    compile 'com.google.firebase:firebase-messaging:9.0.2'
    

    to THIS (same version on all)

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

    if this doesn't work, put all firebase versions to 9.0.2, or 9.0.0

提交回复
热议问题