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

I'm getting this error at run-time (likely because I'm on the Android simulator, and the JIT is catching it.)

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

I'm getting these warnings when building:

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'm also getting these 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've installed both Mono for Android and MonoTouch on my mac. Could this have over-written some settings?

I'm sure that there is just some setting under the project's compiler that I just don't know about.

Thanks,

Best Answer

Answers

  • SFurlaniSFurlani USMember

    Thanks. I re-created the solution, making sure to add only "Mono for Android" projects and imported all my files from the old solution.

    The only thing I can think of that might have caused it was I possibly created the solution as a "Blank C#" project, removed that project, and added the two Android ones.

  • alipishkarialipishkari USMember ✭✭

    I have this error on run time when creating table with sqlite
    cnn.CreateTable<myclass>();

    Error is : Method not found: 'System.Type.op_Equality'
    so I can not use sqlite in my android project .
    any help please.

Sign In or Register to comment.