Xamarin.Firebase.Auth incompatibility with Xamarin.Android.Arch.Work.Runtime
Xamarin.Android Version (eg: 6.0):
10.1.3.7
Operating System & Version (eg: Mac OSX 10.11):
macOS Catalina 10.15.3 & Windows 10 latest
Google Play Services Version (eg: 8.4.0):
Describe your Issue:
I have a Xamarin Forms v4.4.0.991640 (iOS & Android) solution which contains (among others) 2 projects:
- ProjectAuth uses Xamarin.Firebase.Auth 71.1605.0 (currently the latest version)
- ProjectWorker uses Xamarin.Android.Arch.Work.Runtime 1.0.0.3 (again the latest version) The names of the projects are not the actual ones btw.
It seems than when building the solution I get the following conflict:
Error NU1107: Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project ProjectWorker to resolve this issue. ProjectWorker -> Xamarin.Android.Arch.Work.Runtime 1.0.0.3 -> Xamarin.Android.Arch.Persistence.Room.Runtime 1.1.1.3 -> Xamarin.Android.Support.Core.Utils 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) ProjectWorker -> AnotherProjectUsedByProjectWorker -> ProjectAuth -> Xamarin.Firebase.Auth 71.1605.0 -> Xamarin.GooglePlayServices.Basement 71.1620.0 -> Xamarin.Android.Support.v4 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). (NU1107)
I removed AnotherProjectUsedByProjectWorker's reference to ProjectAuth in order to break the chain ProjectWorker -> AnotherProjectUsedByProjectWorker -> ProjectAuth. This though is causing the following error when trying to build the Android project:
java.lang.IllegalArgumentException: already added: Lcom/google/common/util/concurrent/ListenableFuture;
Is Xamarin.Firebase.Auth incompatible with Xamarin.Android.Arch.Work.Runtime due to it's dependency on Xamarin.Android.Support.Compat 28.0.0.1?
Steps to Reproduce (with link to sample solution if possible):
Include any relevant Exception Stack traces, build logs, adb logs:
@xerx Thanks for feedback.
Yes I'm aware of that and am working on the solution/workaround.
Related:
https://github.com/xamarin/GooglePlayServicesComponents/issues/322
@xerx
Updated packages have been released last week. Can you try them, please? And provide us some feedback, please.
@moljac Will do. Thank you for letting me know.
I have this issue. I had Xamarin.Android.Arch.Work.Runtime in my project and after adding Xamarin.Firebase.Auth 71.1605.1 it started producing
java.lang.IllegalArgumentException: already added: Lcom/google/common/util/concurrent/ListenableFuture;
After removing Xamarin.Android.Arch.Work.Runtime the exception is gone. So, the issue is still there.