Failed to read SQLite-net.dll during debugging symbols

为君一笑 提交于 2019-12-12 05:29:35

问题


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.



来源:https://stackoverflow.com/questions/44912104/failed-to-read-sqlite-net-dll-during-debugging-symbols

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!