提问人:Badozvora 提问时间:9/24/2022 最后编辑:Badozvora 更新时间:9/29/2022 访问量:107
发布编译期间出现 Xamarin Android 错误。XALNK7001:MonoDroid.Tuner.AddKeepAlivesStep.AddKeepAlives 的 System.NullReferenceException
Xamarin Android error during Release compilation. XALNK7001: System.NullReferenceException at MonoDroid.Tuner.AddKeepAlivesStep.AddKeepAlives
问:
我有一个在调试模式下编译和运行的 Android 应用程序。 当我将其设置为发布模式时,我在编译过程中收到以下错误:
XALNK7001: System.NullReferenceException: Object reference not set to an instance of an object.
at MonoDroid.Tuner.AddKeepAlivesStep.AddKeepAlives(TypeDefinition type)
at MonoDroid.Tuner.AddKeepAlivesStep.AddKeepAlives(AssemblyDefinition assembly)
at MonoDroid.Tuner.AddKeepAlivesStep.ProcessAssembly(AssemblyDefinition assembly)
at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
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.RunTask()
at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17 Jokes.Droid
谁能帮我?此错误的原因可能是什么?
答: 暂无答案
评论