V
V
Valentine2019-07-21 18:29:29
Android
Valentine, 2019-07-21 18:29:29

Problems with launching and building a Xamarin project, what is the reason?

In Debug mode, when running in the emulator, there are no problems. I decided to test it on a real device. I switched to Release mode, tried to run it again on the emulator and got an error and two warnings:

ADB0020: Несоответствие Android ABI. Выполняется развертывание приложения с поддержкой ABI "armeabi-v7a;arm64-v8a" на несовместимое устройство, использующее ABI "x86". Необходимо создать эмулятор, соответствующий одному из ABI вашего приложения, или добавить "x86" в список ABI, для которых выполнятся сборка приложения.

Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
   в Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
   в Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
   в Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
   в Mono.Cecil.ModuleDefinition.ReadModule(Disposable`1 stream, String fileName, ReaderParameters parameters)
   в Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   в Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
   в Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)

Failed to read 'D:\MyProject\MyProject.Android\obj\Release\90\android\assets\Xamarin.Essentials.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.

I tried to run in other emulators, nothing happened either. Then I started archiving the project, got the APK file, tried to install it on a real device, and of course nothing happened. How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Zolotov, 2019-07-21
@val_gr

Enable x86 support in the linker settings for the release configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question