Mos*_*dam 13 android android-library android-billing
大家.
我刚开始在应用程序中购买应用程序.
这对我来说是新事物.
现在我在网上看到了一些例子,我发现在将结算库链接到它之前,github上的一个项目充满了错误.
当我这样做时,我刚解决了项目中的错误,但仍然有一个感叹号红色标记,因为android计费库包有错误.
我检查了错误,但我无法解决它,因为我不明白如何.
拜托,伙计们,我真的需要一些帮助.
我在这些行中得到了错误
@Override
public android.os.IBinder asBinder()
{
return this;
}
Run Code Online (Sandbox Code Playgroud)
在asBinder中的错误和它的说法"在这一行的多个标记
- The method asBinder() of type IMarketBillingService.Stub must override a superclass method
- implements android.os.IInterface.asBinder"
Run Code Online (Sandbox Code Playgroud)
与此代码相同,我也收到错误
@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);
}
Run Code Online (Sandbox Code Playgroud)
我不知道这些错误是什么.
我刚刚得到了这个库,并把它放在我的Eclipse项目中.
并且错误在InAppBillingService中,我无法访问,因为它是自动生成的!
提前致谢.
生成的 IInAppBillingService.java 中出现很多错误。我尝试了很多很多建议的解决方案但没有成功。最后,Zedifire 方法的一个变体在我的 Eclipse SDK 上运行了。(这些步骤来自记忆 - 尝试直到成功!)
关闭 >Project>Build 自动删除了 /gen 文件 然后转到 >Window>Preferences>Java>Compiler 并发现合规性级别已默认为 1.5 将合规性更改回级别 1.7
项目>清理项目>构建全部(仍然错误!)右键单击项目窗口> android 工具>修复项目属性
| 归档时间: |
|
| 查看次数: |
1425 次 |
| 最近记录: |