Method not found: 'System.Type.op_Equality'

I get this error

System.MissingMethodException: Method not found: 'System.Type.op_Equality'. 

When you start the assembly. (probably because I'm on an Android simulator, and JIT catches it.)

I get these warnings when creating:

 Target ResolveAssemblyReferences: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'Mono.Android' not resolved For searchpath {CandidateAssemblyFiles} Warning: {CandidateAssemblyFiles} not supported currently For searchpath {HintPathFromItem} HintPath attribute not found For searchpath {TargetFrameworkDirectory} Considered target framework dir /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0, assembly named 'Mono.Android' not found. For searchpath {PkgConfig} Considered Mono.Android, but could not find in any pkg-config files. For searchpath {GAC} Considered Mono.Android, but could not find in the GAC. For searchpath {RawFileName} 

I installed Mono for Android and MonoTouch on my Mac. Could this overwrite some settings?

I also get them as warnings:

 Target ResolveAssemblyReferences: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference. /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference. /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference. 

I am sure that there are only some settings in the project compiler that I simply don’t know about.

+4
source share
1 answer

It looks like you somehow created the Mono project for Android, referencing builds 4.0. Theoretically, this is not possible if you did not edit the project file using a text editor (MonoDevelop will not allow you to modify the project for this to happen).

I suggest you create a new Mono project for Android from a template and compare two project files to see if you can determine what is wrong with yours.

+4
source

Source: https://habr.com/ru/post/1446567/


All Articles