Free Support Forum - aspose.com

Java.Interop.Tools.Diagnostics.XamarinAndroidException

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 “LinkAssemblies”任务意外失败。
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'System.Security.Permissions.PermissionSetAttribute' (defined in assembly 'Aspose.Cells, Version=![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQ\Temp%W@GJ$ACOF(TYDYECOKVDYB.png)18.11.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56') with scope 'netstandard, Version=![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQ\Temp%W@GJ$ACOF(TYDYECOKVDYB.png)2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. When the scope is different from the defining assembly, it usually means that the type is forwarded. —> Mono.Cecil.ResolutionException: Failed to resolve System.Security.Permissions.PermissionSetAttribute
在 Mono.Linker.Steps.MarkStep.MarkSecurityAttribute(SecurityAttribute sa)
在 Mono.Linker.Steps.MarkStep.MarkSecurityDeclaration(SecurityDeclaration sd)
在 Mono.Linker.Steps.MarkStep.MarkSecurityDeclarations(ISecurityDeclarationProvider provider)
在 Mono.Linker.Steps.MarkStep.MarkAssembly(AssemblyDefinition assembly)
在 Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
在 Mono.Linker.Steps.MarkStep.Initialize()
在 MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
在 Mono.Linker.Pipeline.Process(LinkContext context)
在 MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
在 Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
— 内部异常堆栈跟踪的结尾 —
在 Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
在 Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
在 Xamarin.Android.Tasks.LinkAssemblies.Execute()
在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
在 Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() PhxGaugingAndroid

@ghd258

Thanks for your inquiry. We asked for detail in your other thread. Please follow that thread for further proceedings.