I'm trying to create a signed .apk file with linking option "SDK Assemblies Only" it couldn;t continue and create this issue below.
ACTUAL SCREENSHOTS/STACKTRACE
Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Void Xamarin.Forms.GoogleMaps.Logics.Android.PolygonLogic/<>c::<CreateNativeItem>b__3_1(Xamarin.Forms.GoogleMaps.Polygon,System.Collections.Specialized.NotifyCollectionChangedEventArgs)' in assembly: 'Xamarin.Forms.GoogleMaps.Android.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Android.Gms.Maps.Model.Polygon::SetHoles(System.Collections.Generic.IList`1<System.Collections.Generic.IList`1<Android.Gms.Maps.Model.LatLng>>)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() QueingSystemMobile.Android
EXPECTED BEHAVIOR
When I try to build the android project using the Release configuration, it should create a package to be able to create an archive to have a signed .apk file.
VERSIONS
PLATFORMS
ACTUAL BEHAVIOR
I'm trying to create a signed .apk file with linking option "SDK Assemblies Only" it couldn;t continue and create this issue below.
ACTUAL SCREENSHOTS/STACKTRACE
EXPECTED BEHAVIOR
When I try to build the android project using the Release configuration, it should create a package to be able to create an archive to have a signed .apk file.
HOW TO REPRODUCE