Reputation: 13
I am trying to add information to my firebase project using Xamarin android app but all of a sudden I got this message:
Java.Lang.NoClassDefFoundError
Message=Failed resolution of: Lcom/google/common/base/Preconditions;
https://paste.ubuntu.com/p/TDNGwSTDTG/
I tried to paste it here as text but it didn't like it :( ^^
I am quite new to Xamarin and Firebase so please don't stone me xD
Upvotes: 1
Views: 103
Reputation: 225
There is a well known conflict beetween Guava
, Xamarin.Firebase
and AndroidX
.
In my case I implemented AndroidX at the end as a new update, so I already had all the logistic configured with Firebase so the fastest, easiest and (for me) the best solution was to stop using AndroidX and start uninstalling all AndroidX package. (Let me tell you, it was a lot.)
It wasn't easy because even some of the last updates from Guava or Xamarin.Firebase if I recall correctly, depends on AndroidX so I recommend to check that before you update your Nuget packages.
So, long story short, my solution was to stop using AndroidX
Nuget package.
At least until this issue got fix.
Upvotes: 1