【发布时间】:2019-12-01 08:05:02
【问题描述】:
我知道“Google Play Billing with AIDL”已被弃用,但我正在使用的应用程序非常复杂,我不想更改应用程序的核心部分。
在播放控制台上,我收到以下消息:-
“我们检测到您的应用正在使用旧版本的 Google Play Developer API。从 2019 年 12 月 1 日起,此 API 的版本 1 和 2 将不再可用。之前更新到版本 3这个日期。”
我在内部检查了“Google Play Billing Library”是否也在使用相同的“Google Play Billing with AIDL”,所以我有点困惑,如果只有在更新库后才能解决问题。
在我的代码中,我已经在使用 API 版本 3 的计费 API。
private IInAppBillingService billingService;
Bundle buyIntentBundle = billingService.getBuyIntent(3, packageName, sku, type, developerPayload);
billingService.getSkuDetails(3, application.getPackageName(),
ITEM_TYPE_INAPP, bundle);
billingService.consumePurchase(3, application.getPackageName(), iabOrder.purchaseToken);
billingService.getPurchases(3, application.getPackageName(), ITEM_TYPE_INAPP, null);
billingService.isBillingSupported(3, application.getPackageName(),
ITEM_TYPE_INAPP);
谁能帮我找出为什么我收到使用 Google Play Developer API 第 3 版的特定消息的主要原因。
【问题讨论】:
标签: in-app-purchase in-app-billing android-billing in-app-subscription android-inapp-purchase