Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Unable to build a project using the Xamarin.Firebase.Crashlytics package. #887

Closed
bvanderw opened this issue Jul 5, 2024 · 2 comments
Closed

Comments

@bvanderw
Copy link

bvanderw commented Jul 5, 2024

Xamarin.Android Version (eg: 6.0):

Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14)

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

Windows 11

Google Play Services Version

Not sure where to find this.

Describe your Issue

I have added Xamarin.Firebase.Crashlytics package to my project but I can't get it to build.

First I get a bunch of warnings in the AndroidX.DataStore.Core namespace:

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. 

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.95\tools\Xamarin.Android.Common.targets 1536

This is followed by a bunch of errors in the AndroidX.DataStore.Core namespace:

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. 

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.95\tools\Xamarin.Android.Common.targets 1536

Relevant information

  • This is an Android.Net project (recently upgraded from a Xamarin.Android project.
  • This is from a build using the Debug configuration. The Debug and Release build settings are all at the default values.
  • At this point, there hasn't been any code added to the project that would require this package.

Packages used in project:

    <PackageReference Include="Xamarin.Firebase.Crashlytics" Version="119.0.0" />
    <GoogleServicesJson Include="google-services.json" />
 

Packages used in share libraries:

    <PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
    <PackageReference Include="MarkdownSharp" Version="2.0.5" />
    <PackageReference Include="Microsoft.AppCenter.Analytics" Version="5.0.5" />
    <PackageReference Include="Microsoft.AppCenter.Crashes" Version="5.0.5" />
    <PackageReference Include="NAudio" Version="2.2.1" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <PackageReference Include="NLog" Version="5.3.2" />
    <PackageReference Include="RestSharp" Version="111.3.0" />
    <PackageReference Include="SharpZipLib" Version="1.4.2" />
    <PackageReference Include="Xamarin.AndroidX.CardView" Version="1.0.0.28" />
    <PackageReference Include="Xamarin.AndroidX.ConstraintLayout" Version="2.1.4.13" />
    <PackageReference Include="Xamarin.AndroidX.ExifInterface" Version="1.3.7.4" />
    <PackageReference Include="Xamarin.AndroidX.Preference" Version="1.2.1.7" />
    <PackageReference Include="Xamarin.AndroidX.RecyclerView" Version="1.3.2.5" />
    <PackageReference Include="Xamarin.Essentials" Version="1.8.1" />
    <PackageReference Include="Xamarin.Google.Android.Material" Version="1.11.0" />

@jpobst
Copy link
Contributor

jpobst commented Sep 23, 2024

@moljac
Copy link
Member

moljac commented Oct 1, 2024

closing this issue

@moljac moljac closed this as completed Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants