Vivek Soneja
Vivek Soneja

Reputation: 880

Circular reference error in firebase with 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.

EDIT: Its fixed 3.4.0-beta02 onwards.

Upvotes: 7

Views: 4187

Answers (3)

Silas
Silas

Reputation: 981

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(...); }

Upvotes: 9

sgjesse
sgjesse

Reputation: 4628

This should be fixed in R8 version 1.5.25, see https://issuetracker.google.com/132575649#comment8 how to use that, or wait for Andriod Studio 3.4.0-beta02 which should have the fix included.

Upvotes: 0

Kuba Pawłowski
Kuba Pawłowski

Reputation: 395

This issue popped up for me today aswell. It's reported here, seems they're working on it.

Upvotes: 0

Related Questions