Xamarin.android 链接器错误nach更新auf neueste Xamarin Android库

Xamarin.android 链接器错误nach更新auf neueste Xamarin Android库,xamarin.android,linker-errors,Xamarin.android,Linker Errors,由于我将我的Xamarin Forms项目更新为最新的Android Libraries 25.1.1,因此由于此链接器错误,我无法再构建版本 >>1>The "LinkAssemblies" task failed unexpectedly. 1>Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'System.Void

由于我将我的Xamarin Forms项目更新为最新的Android Libraries 25.1.1,因此由于此链接器错误,我无法再构建版本

>>1>The "LinkAssemblies" task failed unexpectedly.
1>Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'System.Void Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)' (defined in assembly 'Plugin.Share, Version=5.0.0.3, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.Android.Support.CustomTabs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)
1>   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
1>   at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
1>   at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
1>   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
1>   at Mono.Linker.Steps.MarkStep.ProcessQueue()
1>   at Mono.Linker.Steps.MarkStep.Process()
1>   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
1>   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
1>   at Mono.Linker.Pipeline.Process(LinkContext context)
1>   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
1>   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
1>   --- End of inner exception stack trace ---
1>   at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)

我认为出现这种情况是因为库引用不匹配:

在应用程序中,您指的是
Xamarin.Android.Support.CustomTabs
25.1.1

但是,链接器抱怨的程序集位于旧版本上:


您需要使用6.X版-预发行版,正如我在自述文件中指出的,它是根据25.1.1构建的

正如James Montemagno指出的,新的6.X reelease是根据25.X构建的,这解决了链接器问题