Failed to read SQLite-net.dll during debugging sym

2019-09-16 07:27发布

问题:

When I try build application using xamarin forms in visual studio and deploy on android emulator this warning appears.

Failed to read 'G:\ApkiC-Sharp\GNote\GNote\GNote.Android\obj\Debug\android\assets\SQLite-net.dll' with debugging symbols. Retrying to load it without it. Error details are logged below. GNote.Android

Details Bellow:

Severity Code Description Project File Line Suppression State Warning Mono.CompilerServices.SymbolWriter.MonoSymbolFileException: Symbol file G:\ApkiC-Sharp\GNote\GNote\GNote.Android\obj\Debug\android\assets\SQLite-net.dll.mdb' does not match assembly at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile(String mdbFilename, Guid assemblyGuid) at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName) at Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName) at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters) at Mono.Cecil.ModuleDefinition.ReadModule(Disposable1 stream, String fileName, ReaderParameters parameters) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters) at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file) GNote.Android

How can I fix it?

Thank you

回答1:

Try it: Right click your android project Properties -> Android Options -> drop down "Linking" to None.

It will include the symbols on package, but will increase your app size.

I'm trying to find another better solution, but this works for now.