【发布时间】:2019-09-03 13:26:58
【问题描述】:
我正在尝试为 ACR1225U 蓝牙读卡器构建一个与 Android SDK 的 Xamarin 绑定项目。
添加 AAR 文件后,我很难通过第一次构建。生成的文件之一正在实现一个与在其实现的接口上定义的方法不匹配的方法。我收到以下异常。
'GetPropertyAction' does not implement interface member 'IPrivilegedAction.Run()'. 'GetPropertyAction.Run()' cannot implement 'IPrivilegedAction.Run()' because it does not have the matching return type of 'Object'.
自动生成的代码是:
[Register ("run", "()Ljava/lang/String;", "GetRunHandler")]
public virtual unsafe string Run ()
任何想法将不胜感激!
谢谢。
【问题讨论】: