Android计费库错误
所有人。Android计费库错误,android,android-library,android-billing,Android,Android Library,Android Billing,所有人。 我刚从应用程序中的应用程序内购买开始。 这对我来说是新鲜事。 现在我在网上看到了一些例子,我发现github上的一个项目在我将账单库链接到它之前充满了错误。 当我这样做的时候,我刚刚解决了项目中的错误,但仍然得到了一个红色的感叹号,因为android计费库包有错误。 我检查了错误,但无法解决,因为我不知道如何解决。 拜托,伙计们,我真的需要一些帮助 我在这些行中发现了错误 @Override public android.os.IBinder asBinder()
我刚从应用程序中的应用程序内购买开始。
这对我来说是新鲜事。
现在我在网上看到了一些例子,我发现github上的一个项目在我将账单库链接到它之前充满了错误。
当我这样做的时候,我刚刚解决了项目中的错误,但仍然得到了一个红色的感叹号,因为android计费库包有错误。
我检查了错误,但无法解决,因为我不知道如何解决。
拜托,伙计们,我真的需要一些帮助 我在这些行中发现了错误
@Override
public android.os.IBinder asBinder()
{
return this;
}
在asBinder中,错误和它所说的“在这条线上有多个标记”
- The method asBinder() of type IMarketBillingService.Stub must override a superclass method
- implements android.os.IInterface.asBinder"
与此代码相同,我也收到一个错误
@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;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((bundle!=null)) {
_data.writeInt(1);
bundle.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_sendBillingRequest, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt()))
{
_result = android.os.Bundle.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_sendBillingRequest = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
}
我不知道这些错误是什么。我刚刚得到了这个库,并将它放在我的Eclipse项目中。
错误在InAppBillingService中,我无法访问它,因为它是自动生成的
提前感谢。生成的iInapBillingService.java中出现了很多错误。我尝试了很多建议的解决方案,但都没有成功。最后,Zedefire方法的一个变体在我的Eclipse SDK上起了作用。(这些步骤都是从内存中完成的-试一下,直到成功!) 关闭>项目>自动生成 删除了/gen文件 然后转到>窗口>首选项>Java>编译器,发现遵从性级别默认为1.5 将合规性更改回1.7级 项目>清洁 项目>全部生成(仍有错误!) 右键单击项目窗口>android工具>修复项目属性
我设法通过这些步骤解决了我的问题,我在这个网站上错误地发现了stackoverflow这里是链接你是否正在导入IMarketBillingService类或不按照步骤解决问题:你应该回复并将自己的答案标记为已接受,或删除你的问题。