首次尝试使用应用内计费 V3,针对 Android 2.2(API 级别 8),使用 Eclipse。
创建了一个名为 com.android.vending.billing 的包(在 /src 中),将 IInAppBillingService.aidl 放入其中。但是 /gen 现在包含构建错误,例如
@Override public int isBillingSupported(int apiVersion, java.lang.String packageName, java.lang.String type) throws android.os.RemoteException
它说“IInAppBillingService.Stub.Proxy 类型的方法 isBillingSupported(int, String, String) 必须覆盖超类方法......”。
它建议我删除 @override 但这是 google 提供的文件,我不想更改它。出了什么问题?
清洁和重建无济于事。