GooglePlayServicesComponents icon indicating copy to clipboard operation
GooglePlayServicesComponents copied to clipboard

Xamarin.Firebase.Auth incompatibility with Xamarin.Android.Arch.Work.Runtime

Open xerx opened this issue 5 years ago • 5 comments

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:

  1. ProjectAuth uses Xamarin.Firebase.Auth 71.1605.0 (currently the latest version)
  2. 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 avatar Apr 28 '20 16:04 xerx

@xerx Thanks for feedback.

Yes I'm aware of that and am working on the solution/workaround.

moljac avatar Apr 28 '20 21:04 moljac

Related:

https://github.com/xamarin/GooglePlayServicesComponents/issues/322

moljac avatar Apr 28 '20 21:04 moljac

@xerx

Updated packages have been released last week. Can you try them, please? And provide us some feedback, please.

moljac avatar May 15 '20 21:05 moljac

@moljac Will do. Thank you for letting me know.

xerx avatar May 16 '20 15:05 xerx

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.

ilnur-nazmutdinov-spark avatar Jun 29 '20 12:06 ilnur-nazmutdinov-spark