Android IAB。错误 - 需要身份验证。您需要登录您的 Google 帐户

Android IAB. Error - Authentication is required. You need to sign into your Google Account

在 Android > 示例应用程序 > Trivial Drive when 运行 应用程序中,我在执行 IAP 时得到以下信息:

Error - Authentication is required. You need to sign into your Google Account

我已经在我的 phone 上使用测试帐户(即我在开发者控制台中指定的测试电子邮件地址)切换到一个单独的帐户,并按照此处的所有步骤操作:

https://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store

但没有快乐。

还有什么建议吗?

====更新

我已经删除了我 phone 上的所有 Google 个帐户,现在只有 1 个帐户 - 即测试帐户。

我已经尝试了这里的所有方法:https://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store

试试这个,

首先,删除所有 google 帐户。 第二,清除 google 播放服务的数据。 第三,如果你可以卸载更新,或者只是重新启动 phone.

我有同样的错误,我找到了这个解决方案。

我认为 Google 现在需要将应用程序发布为 alpha 版本,并建立一个专门用于测试的 Google 组。我无法在官方文档中找到此信息(这意味着 Google 可能已经有一段时间没有更新了),但在这里:https://help.gamesalad.com/hc/en-us/articles/203536123-7-6-In-App-Purchases-IAP-for-Google-Play

我之前遇到过同样的问题。转到您的 google 开发者控制台并确保您的应用程序 已发布 到任何版本(alpha、beta 或 prod)。然后,应用内购买将起作用:)

我遇到了这个问题并找到了解决这个问题的单独方法。

在 Google Play 中的应用内购买具有唯一的名称,在 Google Play 中,它们必须全部为小写且没有空格。因此,如果您的 IAP 名为 'myproduct',但您打电话给商店并要求 'MyProduct' 有点奇怪,您将看到此错误消息:

'Authentication is required. You need to sign into your Google Account.'

错误信息太具有误导性了。

完成此处的所有答案后 - 确保激活产品。当我看到我没有激活我的时,我用力捂住了脸。

首先删除所有 google 帐户,然后清除 google 播放服务的数据。第三,如果您可以卸载更新或重新启动 phone

检查您的产品状态,很可能它处于“inactive”状态。只需将其状态更改为“active”,如果上述所有操作都已完成。它会起作用。