question

RaghavendraGR-3840 avatar image
0 Votes"
RaghavendraGR-3840 asked RaghavendraGR-3840 answered

Xamarin.Android.Crashlytics: Update to latest by Nov 15,2020.. Facing an issue while compiling

Hi,

I had to update my Crashlytics, as they stopped sending Crashlogs post Nov 15th 2020, in the process i'm getting the below error and unable to compile.


/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Legacy.targets(5,5): Error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Void Android.Gms.Common.Apis.GoogleApi::.ctor(Android.App.Activity,Android.Gms.Common.Apis.Api,Java.Lang.Object,Android.Gms.Common.Apis.Internal.IStatusExceptionMapper)' in assembly: 'Xamarin.GooglePlayServices.Base.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Gms.Common.Apis.Internal.IStatusExceptionMapper
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType (Mono.Cecil.TypeReference reference) [0x00013] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x0002c] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x000c8] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0001b] in <3e53085892e04b628169d0ea2d9ff8b6>:0
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00047] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue () [0x0000a] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.Process () [0x000f6] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000d] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.MonoDroidMarkStep.Process (Mono.Linker.LinkContext context) [0x0000b] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Pipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x0000d] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0000f] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at MonoDroid.Tuner.Linker.Process (MonoDroid.Tuner.LinkerOptions options, Mono.Linker.ILogger logger, Mono.Linker.LinkContext& context) [0x00071] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x001dd] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.LinkAssemblies.RunTask () [0x0001b] in <3e53085892e04b628169d0ea2d9ff8b6>:0
at Xamarin.Android.Tasks.AndroidTask.Execute () [0x00000] in <3e53085892e04b628169d0ea2d9ff8b6>:0 (XALNK7000) (App.Android)

Note : I'm on the latest of all the plugins and Visual Studio For Mac too.

Regards,
Raghavendra

dotnet-xamarin
· 11
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RaghavendraGR-3840 Hi, the Xamarin.Android.Crashlytics package has been deprecated as it is legacy and is no longer maintained. For the Crashlytics function, try using Xamarin.Firebase.Crashlytics instead.


0 Votes 0 ·

Hi Jarvan,

I'm in a process of upgrading or migrating to newer Xamarin.Firebase.Crashlytics from Xamarin.Android.Crashlytics and thats where i encountered the above issue.

Regards

0 Votes 0 ·

After migrating to new package, try to empty the bin and obj folders, then restart VS and test again. What's the version of the VS? If it doesn't work, try updating to the lastest stable version.

0 Votes 0 ·
Show more comments

1 Answer

RaghavendraGR-3840 avatar image
0 Votes"
RaghavendraGR-3840 answered

Xamarin.Firebase.Messaing 120.2.4 was causing the issue. Later updates resolved the error.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.