gpt4 book ai didi

android - 应用内结算错误 : Unable to buy item, 错误响应:7:Item Already Owned

转载 作者:太空狗 更新时间:2023-10-29 12:42:45 26 4
gpt4 key购买 nike

我是使用应用内结算开发应用的新手,我已经实现了它,但有些次它给我以下错误 应用内结算错误:无法购买商品,错误响应:7:商品已拥有给我解决办法

最佳答案

您需要在再次购买之前消耗一件元素..

IabHelper mHelper = new IabHelper(ACTIVITY, base64EncodedPublicKey);

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
// Pass on the activity result to the helper for handling
if (!mHelper.handleActivityResult(requestCode, resultCode, data)) {
super.onActivityResult(requestCode, resultCode, data);
}
else {
Log.d(TAG, "onActivityResult handled by IABUtil.");
}
}

关于android - 应用内结算错误 : Unable to buy item, 错误响应:7:Item Already Owned,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22986566/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com