xamarin / GooglePlayServicesComponents

Other
315 stars 146 forks source link

XA4215 build errors when referencing Xamarin.Firebase.Crashlytics (Version="118.6.2.2") #880

Closed jonathanantoine closed 4 months ago

jonathanantoine commented 5 months ago

Xamarin.Android Version (eg: 6.0):

Android 14

Operating System & Version (eg: Mac OSX 10.11):

Windows

Google Play Services Version

Describe your Issue

Is there a plan to update to firebase-crashlytics latests version (19.0) ? Adding the currently published version (18.6.2) causes build issues when used with other packages like Xamarin.Firebase.Analytics in Version 121.3.0.7:


5>Xamarin.Android.Common.targets(1536,3): Warning XA4214 : The managed type `AndroidX.DataStore.Core.IStorageConnection` exists in multiple assemblies: Xamarin.AndroidX.DataStore.Core.Android, Xamarin.AndroidX.DataStore.Core.Jvm. Please refactor the managed type names in these assemblies so that they are not identical.
5>Xamarin.Android.Common.targets(1536,3): Warning XA4214 : References to the type `AndroidX.DataStore.Core.IStorageConnection` will refer to `AndroidX.DataStore.Core.IStorageConnection, Xamarin.AndroidX.DataStore.Core.Android`.
5>Xamarin.Android.Common.targets(1536,3): Warning XA4214 : The managed type `AndroidX.DataStore.Core.IWriteScope` exists in multiple assemblies: Xamarin.AndroidX.DataStore.Core.Android, Xamarin.AndroidX.DataStore.Core.Jvm. Please refactor the managed type names in these assemblies so that they are not identical.
5>Xamarin.Android.Common.targets(1536,3): Warning XA4214 : References to the type `AndroidX.DataStore.Core.IWriteScope` will refer to `AndroidX.DataStore.Core.IWriteScope, Xamarin.AndroidX.DataStore.Core.Android`.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.Closeable` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.Closeable` generated by: AndroidX.DataStore.Core.ICloseable, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.Closeable` generated by: AndroidX.DataStore.Core.ICloseable, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.InterProcessCoordinator` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.InterProcessCoordinator` generated by: AndroidX.DataStore.Core.IInterProcessCoordinator, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.InterProcessCoordinator` generated by: AndroidX.DataStore.Core.IInterProcessCoordinator, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.ReadScope` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.ReadScope` generated by: AndroidX.DataStore.Core.IReadScope, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.ReadScope` generated by: AndroidX.DataStore.Core.IReadScope, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.Storage` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.Storage` generated by: AndroidX.DataStore.Core.IStorage, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.Storage` generated by: AndroidX.DataStore.Core.IStorage, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.StorageConnection` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.StorageConnection` generated by: AndroidX.DataStore.Core.IStorageConnection, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.StorageConnection` generated by: AndroidX.DataStore.Core.IStorageConnection, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 : The Java type `androidx.datastore.core.WriteScope` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.WriteScope` generated by: AndroidX.DataStore.Core.IWriteScope, Xamarin.AndroidX.DataStore.Core.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
5>Xamarin.Android.Common.targets(1536,3): Error XA4215 :   `androidx.datastore.core.WriteScope` generated by: AndroidX.DataStore.Core.IWriteScope, Xamarin.AndroidX.DataStore.Core.Jvm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Relevant information

Add relevant project settings from *.csproj file:

Packages used:

        <PackageReference Include="Xamarin.Firebase.Analytics" Version="121.3.0.7" />
        <PackageReference Include="Xamarin.Firebase.Crashlytics" Version="118.6.2.2" />
        <PackageReference Include="Xamarin.GooglePlayServices.Ads.Lite" Version="122.3.0.5" />

Build settings (tools)

    <AndroidDexTool>d8</AndroidDexTool>
    <AndroidLinkTool>r8</AndroidLinkTool>
    <AndroidUseAapt2>true</AndroidUseAapt2>
jpobst commented 5 months ago

In progress: https://github.com/xamarin/AndroidX/pull/906

jonathanantoine commented 5 months ago

Thanks @jpobst

prasad210 commented 5 months ago

Any updates when will this be released ?

BioTurboNick commented 5 months ago

Or a way to work around it in the meantime?

thefex commented 5 months ago

Also look for the resolution of problem. This is important blocker for many enterprise clients as due to AppCenter depreciation many big techs work on migration to Firebase.

LeoJHarris commented 4 months ago

👀 hope to see this resolved soon.

awasilik commented 4 months ago

Issue is closed, is there a package that incorporates those changes already?