我得到了这个错误
System.MissingMethodException: Method not found: 'System.Type.op_Equality'.在运行构建时。(可能是因为我在Android模拟器上,而JIT正在捕捉它。)
在构建时,我收到了以下警告:
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}我已经在我的mac上安装了Mono for Android和MonoTouch。这会覆盖一些设置吗?
我也收到了这些警告:
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.我确信在项目的编译器下有一些我不知道的设置。
发布于 2012-11-17 08:33:36
看起来你似乎以某种方式结束了构建你的Mono for Android项目,引用了4.0程序集。理论上,这应该是不可能的,除非您使用文本编辑器编辑项目文件(MonoDevelop不允许您修改项目以实现此目的)。
我建议你从一个模板创建一个新的Mono for Android项目,然后比较两个项目文件,看看你能不能推断出你的项目出了什么问题。
https://stackoverflow.com/questions/13425462
复制相似问题