Error only occurs when compiling on release mode… on debug mode the compiling occurs without problem… can you help me?
This is the stack trace for error…
en System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
en MonoDroid.Tuner.PreserveApplications.PreserveTypeProperty(CustomAttribute attribute, String property)
en MonoDroid.Tuner.PreserveApplications.ProcessAttributeProvider(ICustomAttributeProvider provider)
en MonoDroid.Tuner.PreserveApplications.ProcessAssembly(AssemblyDefinition assembly)
en Mono.Tuner.SubStepDispatcher.DispatchAssembly(AssemblyDefinition assembly)
en Mono.Tuner.SubStepDispatcher.BrowseAssemblies(IEnumerable`1 assemblies)
en Mono.Tuner.SubStepDispatcher.Process(LinkContext context)
en Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
en Mono.Linker.Pipeline.Process(LinkContext context)
en MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
en Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
en Xamarin.Android.Tasks.LinkAssemblies.RunTask()
en Microsoft.Android.Build.Tasks.AndroidTask.Execute() en /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:lĂnea 17 AppMsMovil.Android 5 CompilaciĂłn
>Solution :
What your linker settings? Please change it to None, then release it, if you will get the same exception,then please share Android option screenshot that contains all the settings when release.
No Dex compiler was specified, select D8 Dex compiler in the Android project properties => android options => dex compiler D8
Code :
d8