Android的应用内计费误差您需要登录到您的谷歌帐户您的、误差、您需要、帐户

2023-09-06 13:38:33 作者:初夏久不遇

我在执行应用程序内购买使用https://github.com/anjlab/android-inapp-billing-v3 。 不过,虽然在应用程序弹出打开它显示错误认证是required.You需要登录到您的谷歌帐户。 我测试了使用不同的设备为相同的结果。

I am implementing in-app purchase using https://github.com/anjlab/android-inapp-billing-v3 . But while in app pop up open it shows "Error Authentication is required.You need to sign into your google account". I tested using different devices as same result.

推荐答案

Improtant!我花了很多时间试图找出为什么我得到错误错误认证是required.You需要登录到您的谷歌帐户。和很多小时后,我发现 - 我试图从控制台访问错误的项目编号。在开发者控制台认购项目有ID为premium我已经尝试访问premium_version项目。愚蠢的错误,但错误的谷歌是绝对不翔实。希望这有助于

Improtant ! I've spent a lot of time trying to find out why I'm getting error "Error Authentication is required.You need to sign into your google account". And after a lot of hours I found out - I was trying to access wrong item id from the console. In the developer console subscription item had id "premium" and I've tried to access "premium_version" item. Stupid mistake but error from google is absolutely not informative. Hope this helps