使用R8的Firebase中的循环参考错误 [英] Circular reference error in firebase with R8

查看:83
本文介绍了使用R8的Firebase中的循环参考错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到了Firebase和R8的错误.

We are getting following error with Firebase and R8.

[CIRCULAR REFERENCE:java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Multiple entries with same key: Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String=Encoded method Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String and Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String=Encoded method Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String]

请帮助我进一步调试此指针.让我知道是否需要更多日志来调试它.

Please help me with any further pointers to debug this. Let me know if more logs are required to debug this.

固定版本为3.4.0-beta02起.

Its fixed 3.4.0-beta02 onwards.

推荐答案

我在最新的Android Studio 3.5中也遇到了此错误.通过点击指向Google Issue Tracker的链接并仅在我的Proguard规则中添加以下行来解决此问题:

I've had this error as well in the latest Android Studio 3.5. Fixed it by following the links to the Google Issue Tracker, and by just adding this line in my Proguard rules :

-keep class com.google.firebase.iid.FirebaseInstanceId { zza(...); }

这篇关于使用R8的Firebase中的循环参考错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆