XamarinComponents: Xamarin.Android.Crashlytics error: package io.fabric.sdk.android.services.events
When I completed all the steps to add the Xamarin.Android.Crashlytics package when building, I get an exception:
error: package io.fabric.sdk.android.services.events does not exist
io.fabric.sdk.android.services.events.EventsStorageListener
Microsoft Visual Studio Community 2017 Version 15.8.4 VisualStudio.15.Release/15.8.4+28010.2026 Microsoft .NET Framework Version 4.7.03062
Xamarin 4.11.0.756 (d15-8@b66ff7180) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.14.221 (a73ca07f7) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 1.1.116 (9619170) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7) Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.14.0.13 (373c313) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
VS bug #732186
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (6 by maintainers)
I had to add every package shown in the license acceptance dialog manually. The full list is as follows:
I then cleaned the solution, closed the solution, reopened it and rebuilt it and it worked. Not sure if the order of those last steps had any effect or not.
I faced with the same problem today. I’m not sure, but probably the reason is that my solution is Xamarin.Forms solution, not a Xamarin.Android (I tried to add Xamarin.Android.Crashlytics to the Android-specific project though). And/or probably because of
Xamarin.Firebase.Messaging&Xamarin.GooglePlayServices.Basereferences that I already had in my project.Btw, my (workaround) solution is similar to @Lewy-H + @kyluke solutions. I split added references to 4 categories (the order does matter):
Xamarin.Android.Crashlyticsitself.Xamarin.Android.Crashlytics.CoreInstalling
Xamarin.Build.Downloadhelped me.I had the same error. I noticed that the xamarin build download cache did not have any fabric-* directory (using windows myself, so it’s in
%USERPROFILE%\AppData\Local\XamarinBuildDownloadCache\).Installed
Xamarin.Android.FabricNuGet package and now the folder is there (including fabric.aar) and project builds.After that, i got some error at runtime due to missing java class definitions. To get the app working, I also had to manually install
Xamarin.Android.Crashlytics.AnswersandXamarin.Android.Crashlytics.CoreandXamarin.Android.Crashlytics.Beta(basically all dependencies if i’m correct) Installing packages created folders for each package in that xamarin build download cache directory.Today, installing only Xamarin.Android.Crashlytics, I have the same problem
@Redth please reopen this issue or open new one as the problem still occurs if we use only Xamarin.Android.Crashlytics
Me too in same version (latest). I had to do as @vuurbeving did; manually add Xamarin.Android.Fabric, which gave runtime error, then also add Xamarin.Crashlytics.Core, Answers and Beta.