0

我正在尝试确认我在 android 上的购买,但我每次都收到响应代码 3 并显示消息“Google Play In-app Billing API version is less than 9”。购买正在使用所需的所有详细信息、令牌等来实现此功能。但是,它仍然无法正常工作。

我在我的应用程序中使用最新版本的 IAB 库:

private fun acknowledgeNonConsumablePurchasesAsync(nonConsumables: List<Purchase>) {
        nonConsumables.forEach { purchase ->
            val params = AcknowledgePurchaseParams.newBuilder().setPurchaseToken(purchase
                .purchaseToken).build()
            playStoreBillingClient.acknowledgePurchase(params) { billingResult ->
                when (billingResult.responseCode) {
                    BillingClient.BillingResponseCode.OK -> {
                        disburseNonConsumableEntitlement(purchase)
                    }
                    else -> Log.d(LOG_TAG, "acknowledgeNonConsumablePurchasesAsync response is ${billingResult.debugMessage}")
                }
            }

        }
    }
4

1 回答 1

1

检查 Google Play 商店缓存是否存在问题。

尝试通过设备安装的应用程序清理它,只是为了丢弃这不是商店的问题。

如果您发现 Google Play 商店缓存有问题,并且问题再次发生,那么我建议您在问题跟踪器中提交错误

于 2019-07-17T15:54:09.323 回答