gpt4 book ai didi

xamarin.android - 链接器错误 nach update auf neueste Xamarin Android 库

转载 作者:行者123 更新时间:2023-12-01 09:16:38 25 4
gpt4 key购买 nike

自从我将 Xamarin Forms 项目更新到最新的 Android 库 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)

最佳答案

您需要使用版本 6.X - 我在自述文件中指出的预发布版本,因为它是针对 25.1.1 构建的

关于xamarin.android - 链接器错误 nach update auf neueste Xamarin Android 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42934916/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com