关于在我的Android应用中实施应用内购所需的权限存在困惑。

huangapple go评论120阅读模式
英文:

Confusion regarding permissions needed to implement In-App purchase in my android app

问题

我正在尝试在我使用Flutter制作的Android应用中实现应用内购买。我想要问的是,我是否需要在AndroidManifest.xml中添加这个权限:"<uses-permission android:name="com.android.vending.BILLING"/>"。我感到困惑的原因是我在添加了这个权限之后发布了应用包,但GP控制台显示了以下错误:“我们检测到该应用使用的是不受支持的Play计费版本。请升级到计费库版本5或更新版本以发布此应用。” 如果不需要这个权限,那么我是否需要其他权限或实现?

英文:

I am trying to implement In App Purchase in my android app that I am making with flutter. What I want to ask is that do I need to add this permission in AndroidManifest.xml, "<uses-permission android:name="com.android.vending.BILLING"/>". I have this confusion because I released app bundle after adding this permission and the GP Console is giving me this error "We've detected this app uses an unsupported version of Play billing. Please upgrade to Billing Library version 5 or newer to publish this app." If that permission is not required then do I need some other permissions or implementations?

答案1

得分: 0

请在 build.gradle 中为(Module: app)升级计费库,如下所示:

dependencies {
   implementation 'com.android.billingclient:billing:6.0.0'
   implementation 'com.android.volley:volley:1.2.1'
}

6.0 是计费库的最新版本。

英文:

Please upgrade billing library in build.gradle for (Module:app) like this:

dependencies {
   implementation 'com.android.billingclient:billing:6.0.0'
   implementation 'com.android.volley:volley:1.2.1'
}

6.0 is the latest version of billing library.

huangapple
  • 本文由 发表于 2023年6月18日 19:37:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76500337.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定