Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bvanderw opened this issue Jul 5, 2024 · 0 comments

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" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant