Error when compile for release

Hikari91Hikari91 ✭✭✭ITMember ✭✭✭

Hi,
I have a Shell application for iOS and Android.
If I run the application on emulator or physical device in debug build all works fine.

When I try to run the application in release mode these errors triggers:

Android:
The "LinkAssemblies" task failed unexpectedly. Mono.Linker.MarkException: Error processing method: 'System.Void FrameworkVolosGenerico.DBmanager::.ctor(System.String)' in assembly: FrameworkVolosGenerico.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void SQLite.SQLiteConnection::.ctor(System.String,SQLite.SQLiteOpenFlags,System.Boolean,System.Object) at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference) at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference) at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction) at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body) 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 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.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SgatFAST.Android C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 2145

IOS:
Can't resolve the reference 'System.Void SQLite.SQLiteConnection::.ctor(System.String,SQLite.SQLiteOpenFlags,System.Boolean,System.Object)', referenced from the method 'System.Void FrameworkVolosGenerico.DBmanager::.ctor(System.String)' in 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. SgatFAST.iOS C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 804

How can I solve this issue?

Regards.

Sign In or Register to comment.