如何纠正自动生成的IMarketBillingService.java文件中的错误? [英] How to rectify the errors in the autogenerated IMarketBillingService.java file?
本文介绍了如何纠正自动生成的IMarketBillingService.java文件中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的11014633实施在应用程序内结算
服务。
I am trying to implement In app billing
service in my Andorid application.
我已经添加了 IMarketBillingService.aidl
文件到我的Eclipse项目。然后Eclipse中自动生成的 IMarketBillingService.java
的文件,但有许多错误。
I've added the IMarketBillingService.aidl
file to my project in Eclipse. Then Eclipse autogenerated the IMarketBillingService.java
file, but with many errors.
@Override public android.os.IBinder asBinder() { return mRemote; }
- implements android.os.IInterface.asBinder
- The method asBinder() of type IMarketBillingService.Stub.Proxy must override asuperclass method
@Override public android.os.Bundle sendBillingRequest(android.os.Bundle bundle) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.os.Bundle _result;
......
}
- The method sendBillingRequest(Bundle) of type IMarketBillingService.Stub.Proxy must override a superclass method
- implements com.android.vending.billing.IMarketBillingService.sendBillingRequest
谁能帮助我?
Can anyone help me with this?
我使用的是Mac,Eclipse的朱诺与Android SDK的最新版本。
I am using Mac, Eclipse Juno with last version of Android SDK.
推荐答案
您可以尝试用默认的编译选项。
You might try to use default compile options.
- 右键点击(或按住Control键点击)项目,并选择属性
- 选择Java编译器
- 取消选中启用项目的具体设置
Eclipse会提示重新编译,它应该是所有好的。
Eclipse will prompt to re-compile and it should be all good.
这篇关于如何纠正自动生成的IMarketBillingService.java文件中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文