C# 游戏圈-单机器人-Xamarin

C# 游戏圈-单机器人-Xamarin,c#,android,xamarin.android,amazon,xamarin,C#,Android,Xamarin.android,Amazon,Xamarin,我正在尝试在Xamarin Mono for android上使用GameCircle SDK,但我遇到了以下问题: Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0738: `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member `Com.Amazon.Ags.Client

我正在尝试在Xamarin Mono for android上使用GameCircle SDK,但我遇到了以下问题:

Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0738: 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member 
`Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy()' 
and the best implementing candidate 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.DeepCopy()' 
return type `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' 
does not match interface member return type `Java.Lang.Object' (CS0738) (GameCircle.MonoDroid)


Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0535: 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member 
`Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.Merge(Java.Lang.Object)' (CS0535) (GameCircle.MonoDroid)

Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
我已经在GitHub上创建了一个存储库,所以任何人都可以为它的工作做出贡献

有什么帮助吗


谢谢

这是由于绑定生成器和Java协变返回类型的限制。修复方法是将
managedReturn
属性添加到
Transforms\Metadata.xml

请参阅文档中的问题:类未实现接口方法部分

例如,您可以将此XML片段添加到
Transforms\Metadata.XML

<attr
    path="/api/package[@name='com.amazon.ags.client.whispersync']/class[@name='GameDataSingleMap']/method[@name='deepCopy']"
    name="managedReturn"
>Java.Lang.Object</attr>
Java.Lang.Object