如何纠正自动生成的IMarketBillingService.java文件中的错误?自动生成、错误、文件、java

由网友(时光是自称包治百病的庸医)分享简介:我想在我的11014633实施在应用程序内结算服务。I am trying to implement In app billing service in my Andorid application.我已经添加了 IMarketBillingService.aidl 文件到我的Eclipse项目。然后Eclipse...

我想在我的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.

阅读全文

相关推荐

最新文章