Base solution for your next web application
Open Closed

Problem with linking in Droid project #10452


User avatar
0
mfeder created

Hi,

I started getting this error when building the Droid project with Linking set to "Sdk Assemblies Only". When linking is set to None it builds without iossues. Please help.

===================================

Mono.Linker.MarkException: Error processing method: 'System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__61::MoveNext()' in assembly: 'Abp.dll' ---> System.ArgumentNullException: Value cannot be null.Parameter name: document at Mono.Cecil.Cil.SequencePoint..ctor(Int32 offset, Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/SequencePoint.cs:line 61 at Mono.Cecil.SignatureReader.ReadSequencePoints(Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 3870 at Mono.Cecil.MetadataReader.ReadSequencePoints(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 2870 at Mono.Cecil.Cil.PortablePdbReader.Read(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/PortablePdb.cs:line 118 at Mono.Cecil.Cil.CodeReader.ReadMethodBody() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 108 at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 59 at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154 at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func3 read) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/ModuleDefinition.cs:line 989 at Mono.Cecil.MethodDefinition.get_Body() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154 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 Mono.Linker.Steps.MarkStep.Process(LinkContext context) at MonoDroid.Tuner.MonoDroidMarkStep.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 Xamarin.Android.Tasks.AndroidTask.Execute() TMS.Mobile.Droid


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mfeder

    Linking is not supported at the moment.

    Thanks,

  • User Avatar
    0
    Ricavir created

    Hi @ismcagdas,

    I'm having the same issue. The APK file size is much more bigger when linking is deactivated (at least 2 times bigger).

    I've released this app a lot of times and always with linker activated (SDK only). I'm having this issue since I upgraded to Abp 6.4.

    Could you please help to find a solution like before ?