You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following two warnings appeared in XF/Android projects right after upgrading to VS 15.8.2:
Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
Failed to read '...\obj\Debug\MonoAndroid81\android\assets\Mono.Android.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
Im having The same Issue in Xamarin forms project , Visual Studio after Updating to 15.9
Severity Code Description Project File Line Suppression State
Warning Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(Disposable`1 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)
warning : Failed to read 'D:\is.Android\obj\Debug\81\android\assets\uore.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
warning : Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
warning : at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
warning : at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
warning : at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
warning : at Mono.Cecil.ModuleDefinition.ReadModule(Disposable`1 stream, String fileName, ReaderParameters parameters)
warning : at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
warning : at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
warning : at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.ReadAssembly(String file)
The app builds and runs fine but I can't set a breakpoint in my code.
I'm having this issue in VS15.9.2
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:\CoorIdentityMobile\CoorIdentityMobile\CoorIdentityMobile.Android\obj\Debug\81\android\assets\CoorIdentityMobile.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
I get this issue (since updating to VS15.9.2) and it seems a clean and rebuild fixes the issue (temporarily).
As soon as you make a change the source files are out of date and no more working breakpoints.
And after this manually deleting bin and obj folders of android and .NET Standard projekt helps to get debug working without clean every time. But VS still has some issues with highlighting the right lines (or especially only the lines where pointer stands) in editor.
Reacted by Stephen Price, PilgrimViis and Joseph Nixon
After Migrating AndroidX I am having issue like below
Severity Code Description Project File Line Suppression State
Error Symbols were found but are not matching the assembly
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination)
at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies)
at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() KegID.Android C:\Users\jdj1.nuget\packages\xamarin.androidx.migration\1.0.0\buildTransitive\monoandroid90\Xamarin.AndroidX.Migration.targets 227
@dellis1972 but that still doesn't resolve the original issue I believe. I was getting the same warning when working on some app but I was not using any kind of obfuscation. Or is some kind of obfuscation on by default in new Xamarin.Android or Xamarin.Forms project? I mean in the default templates in Visual Studio for Windows.
It happens to me too, but as an error so I can't compile. it comes in Release only. Debug works without any problem
EDIT:
I've installed XamarinAndroidXMigration but nothing changed
EDIT2:
solved disabling dotfuscator, but it's not a real solution of course
Symbols were found but are not matching the assembly
in Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
in Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
in Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
in Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
in Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination)
in Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies)
in Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() BeachuApp.Android
@elpanas looking at your stack trace I believe you are hitting the following issues dotnet/android-libraries#8. I also believe that the team are looking into that problem.
@elpanas looking at your stack trace I believe you are hitting the following issues xamarin/AndroidX#8. I also believe that the team are looking into that problem.
Top. Currently I think I've solved using this hint:
In my case the problem comes on, only when dotfuscator is enabled. I tried cleaning, closing, opening, tried even to remove one by one a dotfuscator's hints i have in my project, but only disabling dotfuscator resolves an issue. My guess is that an obfuscation must run after all operations, before packaging an apk.
In my case the problem comes on, only when dotfuscator is enabled. I tried cleaning, closing, opening, tried even to remove one by one a dotfuscator's hints i have in my project, but only disabling dotfuscator resolves an issue. My guess is that an obfuscation must run after all operations, before packaging an apk.
The problem is in the name of the exception itself:
"Mono.Cecil.Cil.SymbolsNotMatchingException" = symbol is not matching
Meaning we changed something where Unity didn't re-sync.
On the bottom of Unity Editor (the section where all your assets are), right click -> "Reimport All"
Done.
Like my post please because you know it's awesome smug
Activity
AngeloLazzari commentedon Sep 6, 2018
same problem on VSC 7.6.3
loic-git commentedon Nov 14, 2018
Same problem on VSC 7.6.7
tickerman commentedon Nov 14, 2018
Im having The same Issue in Xamarin forms project , Visual Studio after Updating to 15.9
Severity Code Description Project File Line Suppression State
Warning Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(Disposable`1 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)
moustafashaban commentedon Nov 23, 2018
same issue here
xufeipyxis commentedon Nov 23, 2018
I'm having this issue in VS15.9.2
The app builds and runs fine but I can't set a breakpoint in my code.
shao200 commentedon Nov 28, 2018
I'm having this issue in VS15.9.2
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:\CoorIdentityMobile\CoorIdentityMobile\CoorIdentityMobile.Android\obj\Debug\81\android\assets\CoorIdentityMobile.dll' with debugging symbols. Retrying to load it without it. Error details are logged below.
symbols not display!
cat-prices commentedon Nov 28, 2018
I get this issue (since updating to VS15.9.2) and it seems a clean and rebuild fixes the issue (temporarily).
As soon as you make a change the source files are out of date and no more working breakpoints.
Alex-Witkowski commentedon Dec 5, 2018
Same behavior as @codan-prices with VS15.9.3 . This kills productivity when working on Forms :(
@pierceboggan are you aware of this bug?
Alex-Witkowski commentedon Dec 5, 2018
Okay seems like setting DebugType to full like mentioned in:
xamarin/Xamarin.Forms#3137
And after this manually deleting
binandobjfolders of android and .NET Standard projekt helps to get debug working without clean every time. But VS still has some issues with highlighting the right lines (or especially only the lines where pointer stands) in editor.stesvis commentedon Nov 5, 2019
I am having this issue now in VS 2019 16.3.7.
Deleting
binandobj+ rebuild all does not solve it.Any idea?
ezverev commentedon Dec 17, 2019
VS 2019 16.4.2 has this issue as well.
MihaMarkic commentedon Dec 27, 2019
I'm getting a variation of this: "Mono.Cecil.Cil.SymbolsNotFoundException: No symbol found for file" but otherwise the message is the same.
jitendrajadav commentedon Mar 2, 2020
After Migrating AndroidX I am having issue like below
Severity Code Description Project File Line Suppression State
Error Symbols were found but are not matching the assembly
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination)
at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies)
at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() KegID.Android C:\Users\jdj1.nuget\packages\xamarin.androidx.migration\1.0.0\buildTransitive\monoandroid90\Xamarin.AndroidX.Migration.targets 227
hardikphd commentedon Mar 2, 2020
I have same issue after Upgrading Xamarin.Essentials to 1.5 from 1.4
pmahend1 commentedon Mar 12, 2020
Same issue
10 remaining items
bramborman commentedon Apr 10, 2020
@dellis1972 but that still doesn't resolve the original issue I believe. I was getting the same warning when working on some app but I was not using any kind of obfuscation. Or is some kind of obfuscation on by default in new Xamarin.Android or Xamarin.Forms project? I mean in the default templates in Visual Studio for Windows.
[Java.Interop.Tools.Cecil] Change DirectoryAssemblyResolver Warning t…
[Java.Interop.Tools.Cecil] Change DirectoryAssemblyResolver Warning t…
elpanas commentedon May 1, 2020
It happens to me too, but as an error so I can't compile. it comes in Release only. Debug works without any problem
EDIT:
I've installed XamarinAndroidXMigration but nothing changed
EDIT2:
solved disabling dotfuscator, but it's not a real solution of course
dellis1972 commentedon May 3, 2020
@elpanas looking at your stack trace I believe you are hitting the following issues dotnet/android-libraries#8. I also believe that the team are looking into that problem.
elpanas commentedon May 9, 2020
Top. Currently I think I've solved using this hint:
https://github.com/xamarin/AndroidX/issues/8#issuecomment-572197993
Building works but now the problem is that it gives me an error when I try to create the apk
EDIT:
I've solved even this
cleaning solution,
deleting bin and obj folder
restarting VS
Rebuilding the solution
lunjio commentedon May 10, 2020
In my case the problem comes on, only when dotfuscator is enabled. I tried cleaning, closing, opening, tried even to remove one by one a dotfuscator's hints i have in my project, but only disabling dotfuscator resolves an issue. My guess is that an obfuscation must run after all operations, before packaging an apk.
elpanas commentedon May 10, 2020
I've solved my first issue due to dotfuscator in this way: https://github.com/xamarin/xamarin-android/issues/2120#issuecomment-623097383 as suggested by dellis1972
FranRDev commentedon May 26, 2020
In my case, it was by manually editing
AndroidManifest.xml.I undid it, and made the changes through the project
Propertiesmenu.WeLoveJesusChrist commentedon Jun 23, 2021
The problem is in the name of the exception itself:
"Mono.Cecil.Cil.SymbolsNotMatchingException" = symbol is not matching
Meaning we changed something where Unity didn't re-sync.
On the bottom of Unity Editor (the section where all your assets are), right click -> "Reimport All"
Done.
Like my post please because you know it's awesome smug