使用F#,IJavaObject包含在多个显式实现的接口类型错误中

时间:2016-09-14 16:17:11

标签: android .net xamarin f# xamarin.android

尝试在我的Android F#项目中使用“Google Play Services - Drive”添加Google云端硬盘支持。但是在实现GoogleApiClient.IOnConnectionFailedListener接口时,我收到以下消息'接口IJavaObject'包含在多个显式实现的接口类型中。添加此接口的显式实现'。

以下是错误enter image description here

的图片

如何实施?

1 个答案:

答案 0 :(得分:0)

type GDriveApi () =
    inherit Java.Lang.Object ()
    interface Android.Runtime.IJavaObject with 
        member this.Handle = base.Handle
    interface GoogleApiClient.IOnConnectionFailedListener with
        member this.OnConnectionFailed result = ()
    interface GoogleApiClient.IConnectionCallbacks with
        member this.OnConnectionSuspended cause = ()
        member this.OnConnected bundle = ()