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
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) in D:\a\1\s\source\Xamarin.AndroidX.Migration\CecilMigrator.cs:line 85
at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies) in D:\a\1\s\source\Xamarin.AndroidX.Migration\CecilMigrator.cs:line 50
at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() in D:\a\1\s\source\Xamarin.AndroidX.Migration.BuildTasks\CecilfyFiles.cs:line 35 x2Apps.CheckPlaca.App.Android C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview02\build\Xamarin.AndroidX.Migration.targets 182
Setting the DotfuscatorXamarinEnabled option to FALSE in my csproj solves the problem.
Are there any news? We are having the same problem since updating to AndroidX and this is stopping us from delivering an important update to our users.
I know. But we had to migrate because the newest instabug xamarin version dependes on these packages and wen needed to update instabug because it includes some critical bug fixes. Instabug shouldn't release release updates depending on prerelease packages. Anyways, i fixed it. Here is the solution if anybody is interested in the future:
I commented out the following part inside the PreEmptive.Dotfuscator.Xamarin.targets file.
<!--<_DotfuscatorXamarinOriginalFiles Include="@(_DebugSymbolsIntermediatePath)"
Condition="'$(_DebugSymbolsProduced)'=='true' and '$(SkipCopyingSymbolsToOutputDirectory)' != 'true' and '$(CopyOutputSymbolsToOutputDirectory)'=='true'">
<Destination>%(_DebugSymbolsIntermediatePath.Filename)%(_DebugSymbolsIntermediatePath.Extension)</Destination>
</_DotfuscatorXamarinOriginalFiles>-->
Then it runs fine.
Reacted by Kacper Tryniecki, yinyue200 and Luca Panariello
I am using Babel and I am having the same problems in building the release version but I am using the stable versions of AndroidX (1.0.0)
Xamarin.AndroidX.Migration.1.0.0/build/monoandroid90/Xamarin.AndroidX.Migration.targets(227,9): error : Symbols were found but are not matching the assembly
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
Same issue in my case using dotfuscator community... And disabling obfuscation is no option so i am blocked with my app releases. Does anybody know a good alternative. Or does anybody know how to address this issue to PreEmptive?
Activity
tranb3r commentedon Sep 16, 2019
Same for me, using Babel instead of Dotfuscator
tranb3r commentedon Oct 9, 2019
I've moved my obfuscation task after _AndroidXCecilfy and now I can build and manually deploy my app (but deploy from VS still fails though).
MarvinFrankenfeld commentedon Jan 3, 2020
Are there any news? We are having the same problem since updating to AndroidX and this is stopping us from delivering an important update to our users.
kcrg commentedon Jan 8, 2020
@MarvinFrankenfeld Thats why updating prod project to nugets in preview isn't good idea.
MarvinFrankenfeld commentedon Jan 8, 2020
I know. But we had to migrate because the newest instabug xamarin version dependes on these packages and wen needed to update instabug because it includes some critical bug fixes. Instabug shouldn't release release updates depending on prerelease packages. Anyways, i fixed it. Here is the solution if anybody is interested in the future:
I commented out the following part inside the PreEmptive.Dotfuscator.Xamarin.targets file.
Then it runs fine.
maneca commentedon Feb 24, 2020
Hello everyone,
I am using Babel and I am having the same problems in building the release version but I am using the stable versions of AndroidX (1.0.0)
Xamarin.AndroidX.Migration.1.0.0/build/monoandroid90/Xamarin.AndroidX.Migration.targets(227,9): error : Symbols were found but are not matching the assembly
Can anybody help me with this?
jitendrajadav commentedon Mar 2, 2020
Same problem
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
maneca commentedon Mar 9, 2020
Hi everyone,
After contacting Babel support, they discovered that it is necessary to add the --debug to the call to Babel obsfucator.
Acoording to the support, in the next release of the babel obfuscator this will no longer be needed.
alienwareone commentedon Mar 20, 2020
I have the same problem. How did you setup that task after "_AndroidXCecilfy"?
tranb3r commentedon Mar 20, 2020
In my csproj, I've added this target:
The obfuscate.bat script launches babel.exe and makes sure it processes dlls from the androidx\cecil\ folder.
alienwareone commentedon Mar 22, 2020
Thanks @tranb3r.
Did anyone found a solution for Dotfuscator (Community)?
@MarvinFrankenfeld solution hasn't worked for me.
I've tried to add "_AndroidXCecilfyShrink" to the build entry point of PreEmptive.Dotfuscator.Xamarin.Targets:
But this gives me another error:
lucafederli commentedon Mar 25, 2020
Same issue in my case using dotfuscator community... And disabling obfuscation is no option so i am blocked with my app releases. Does anybody know a good alternative. Or does anybody know how to address this issue to PreEmptive?
MarvinFrankenfeld commentedon Mar 26, 2020
@lucafederli , have you tried my solution described above?
#8 (comment)
lucafederli commentedon Mar 27, 2020
@MarvinFrankenfeld , I tried following:
I commented out the following part inside the PreEmptive.Dotfuscator.Xamarin.targets file:
<!--<_DotfuscatorXamarinOriginalFiles Include="@(_DebugSymbolsIntermediatePath)" Condition="'$(_DebugSymbolsProduced)'=='true' and '$(SkipCopyingSymbolsToOutputDirectory)' != 'true' and '$(CopyOutputSymbolsToOutputDirectory)'=='true'"> <Destination>%(_DebugSymbolsIntermediatePath.Filename)%(_DebugSymbolsIntermediatePath.Extension)</Destination> </_DotfuscatorXamarinOriginalFiles>-->--> same error when building in release mode with enabled obfuscation (dotfuscator)
Then I tried the approach of @alienwareone , but same error as described by him.
mattleibow commentedon Apr 27, 2020
Another case... maybe: xamarin/Xamarin.Forms#10441
Allow migration to continue when symbols are bad
Allow migration to continue when symbols are bad (#98)