简体   繁体   English

发布使用旧版 Google Play 结算

[英]Release uses an old version of Google Play Billing

I've been searching for hours but I can't seem to find an answer to what is the difference between Google Play Billing Library and In-app Billing API and if one of them is causing the error message below:我一直在寻找几个小时,但我似乎无法找到关于Google Play Billing LibraryIn-app Billing API之间有什么区别的答案,以及其中一个是否导致以下错误消息:

Release uses an old version of Google Play Billing

I'm reading about Google Play Billing Library here: https://developer.android.com/google/play/billing/integrate and the In-app Billing API here: http://android.cn-mirrors.com/google/play/billing/billing_overview.html我在这里阅读有关Google Play Billing Library的信息: https ://developer.android.com/google/play/billing/integrate 和In-app Billing APIhttp ://android.cn-mirrors.com/google /play/billing/billing_overview.html

I'm really confused, the whole confusion started because I was trying to deploy an old app on Google play started by someone else long ago, but got the error:我真的很困惑,整个混乱开始是因为我试图在很久以前由其他人开始在 Google Play 上部署一个旧应用程序,但得到了错误:

Release uses an old version of Google Play Billing

So I started to look at what version of the billing library the app uses but I couldn't find it.因此,我开始查看应用程序使用的计费库版本,但找不到。 From the AndroidManifest.xml , I see:AndroidManifest.xml ,我看到:

<uses-permission android:name="com.android.vending.BILLING" />

And from one of the files in the android project I see:从 android 项目中的一个文件中,我看到:

import com.android.vending.billing.IInAppBillingService;

As you can see it doesn't really tell me what version the library is.如您所见,它并没有真正告诉我该库是什么版本。

Having no experience in Google play store, I started looking up Google Play Billing Library and I'm seeing:由于没有 Google Play 商店的经验,我开始查找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.

Problem is I'm not seeing anything that's importing the Google Play Billing Library dependency in the project, ie:问题是我没有看到在项目中导入Google Play Billing Library依赖项的任何内容,即:

dependencies {
    def billing_version = "5.0.0"

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

This makes me thing, perhaps the project is not using the Google Play Billing Library at all.这让我很感兴趣,也许该项目根本没有使用 Google Play 计费库。

So I started to look at IInAppBillingService which led me here: http://android.cn-mirrors.com/google/play/billing/billing_overview.html .所以我开始查看IInAppBillingService ,它把我带到了这里: http ://android.cn-mirrors.com/google/play/billing/billing_overview.html。 This seems to be an old library?这似乎是一个旧图书馆? Which is making me think that's the reason why I'm getting Release uses an old version of Google Play Billing when I'm trying to deploy the app.这让我认为这就是我在尝试部署应用程序时Release uses an old version of Google Play Billing的原因。

This leads me to my question:这引出了我的问题:

  1. Am I getting the error Release uses an old version of Google Play Billing because the project is using IInAppBillingService which is very old?我是否收到错误Release uses an old version of Google Play Billing因为该项目使用的是非常旧的IInAppBillingService

  2. What is the difference between Google Play Billing Library and In-app Billing API . Google Play Billing LibraryIn-app Billing API有什么区别。

IInAppBillingService.aidl is obsolete and might not even be considered anymore. IInAppBillingService.aidl已过时,甚至可能不再考虑。
What the difference in between the library and the API is, should possibly be obvious. API之间的区别应该是显而易见的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何实现 google play billing library version 4? - How to implement google play billing library version 4? 此版本的应用程序未配置为通过 Google Play 计费 - This version of the application is not configured for billing through Google Play 实施 Google Play 结算库版本 2 - Implement Google Play Billing Library version 2 即使我从 Google Play 安装了最新版本,Android 7 应用程序仍使用旧版本的 WebView - On android 7 app uses old version of WebView even after I installed up to date from Google Play 我需要包括<uses-permission android:name="com.android.vending.BILLING" />当我使用 Google Play 结算库版本 5 时,在清单中? - Do I need to include <uses-permission android:name="com.android.vending.BILLING" /> in Manifest when I use Google Play Billing Library version 5? Play 结算版本不受支持 - Unsupported Version of Play billing 我们检测到您的应用正在使用旧版本的 Google Play 结算。 到 2021 年 11 月,所有应用更新必须使用版本 3 或更新版本 - We’ve detected that your app is using an old version of the Google Play Billing. By Nov 2021 all the app updates must use version 3 or newer 错误:此版本的应用程序未配置为通过Google Play结算 - Error: This version of the application is not configured for billing through Google Play 购买Android In App:未配置此版本的应用,以便通过Google Play计费 - Android In app purchase: This version of the application is not configured for billing through Google Play 将 google play 计费库更新到版本 2 不起作用,购买总是退款 - Updating google play billing library to version 2 is not working, purchase is always refunded
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM