首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >发行版使用了旧版本的Google计费

发行版使用了旧版本的Google计费
EN

Stack Overflow用户
提问于 2022-07-05 18:15:59
回答 1查看 361关注 0票数 0

我已经搜索了几个小时了,但是我似乎找不到Google Play Billing LibraryIn-app Billing API之间的区别的答案,如果其中一个导致了下面的错误消息:

代码语言:javascript
运行
复制
Release uses an old version of Google Play Billing

我正在阅读关于Google Play Billing Library的文章:https://developer.android.com/google/play/billing/integrateIn-app Billing API这里:overview.html

我真的很困惑,因为我很久以前就试图在谷歌上部署一个旧的应用程序,但是我得到了一个错误:

代码语言:javascript
运行
复制
Release uses an old version of Google Play Billing

所以我开始研究这个应用程序使用的计费库的版本,但是我找不到它。从AndroidManifest.xml,我看到:

代码语言:javascript
运行
复制
<uses-permission android:name="com.android.vending.BILLING" />

从android项目中的一个文件中我看到:

代码语言:javascript
运行
复制
import com.android.vending.billing.IInAppBillingService;

正如你所看到的,它并没有真正告诉我库是什么版本。

没有谷歌游戏商店的经验,我开始查找Google Play Billing Library,我看到:

代码语言:javascript
运行
复制
To be compliant, apps must import version 4.0.0 or higher of the Play Billing Library. Note that Billing dependencies would be found only in APKs that require the com.android.vending.BILLING permission.

问题是,我没有看到在项目中导入Google Play Billing Library依赖项的任何内容,即:

代码语言:javascript
运行
复制
dependencies {
    def billing_version = "5.0.0"

    implementation "com.android.billingclient:billing:$billing_version"
}

这让我很感兴趣,也许这个项目根本没有使用Google计费库。

所以我开始看IInAppBillingService,它带我来到这里:overview.html。这好像是个旧图书馆?这让我认为,这就是为什么我在尝试部署应用程序时获得Release uses an old version of Google Play Billing的原因。

这就引出了我的问题:

  1. 我是否得到了错误Release uses an old version of Google Play Billing,因为该项目使用的是非常老的IInAppBillingService
  2. Google Play Billing LibraryIn-app Billing API的区别是什么?
EN

回答 1

Stack Overflow用户

发布于 2022-07-05 18:38:15

IInAppBillingService.aidl已经过时,甚至可能不再被考虑。

图书馆API接口之间的区别应该是显而易见的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72873868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档