英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论