我已经搜索了几个小时了,但是我似乎找不到Google Play Billing Library
和In-app Billing API
之间的区别的答案,如果其中一个导致了下面的错误消息:
Release uses an old version of Google Play Billing
我正在阅读关于Google Play Billing Library
的文章:https://developer.android.com/google/play/billing/integrate和In-app Billing API
这里:overview.html
我真的很困惑,因为我很久以前就试图在谷歌上部署一个旧的应用程序,但是我得到了一个错误:
Release uses an old version of Google Play Billing
所以我开始研究这个应用程序使用的计费库的版本,但是我找不到它。从AndroidManifest.xml
,我看到:
<uses-permission android:name="com.android.vending.BILLING" />
从android项目中的一个文件中我看到:
import com.android.vending.billing.IInAppBillingService;
正如你所看到的,它并没有真正告诉我库是什么版本。
没有谷歌游戏商店的经验,我开始查找Google Play Billing Library
,我看到:
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
依赖项的任何内容,即:
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
的原因。
这就引出了我的问题:
Release uses an old version of Google Play Billing
,因为该项目使用的是非常老的IInAppBillingService
?Google Play Billing Library
和In-app Billing API
的区别是什么?https://stackoverflow.com/questions/72873868
复制相似问题