本文介绍了是否可以在 Android Studio 中本地调试 Google Play 的应用内计费?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我在本地测试应用内订阅产品时遇到此错误.

I am getting this error testing in-app subscription products locally.

需要认证.您需要登录您的 Google 帐户

我能够检查产品的库存,但我不应该也能够购买吗?

I was able to check the the inventory for the product but shouldn't I also be able to purchase it?

有很多关于为什么会发生这个错误的帖子,我认为已经解决了:

There are a number of posts about why this error might occur which I thought were addressed:

  • 该产品在 Beta 频道中发布,并启用了应用内结算
  • 我已使用设备上的测试用户许可帐户登录 Play 商店.

是通过 beta/alpha 通道测试实际购买的唯一方法 - 而不是直接来自 android studio.这篇文章表明这​​是可能的(见屏幕截图)

Is the only way to test actual purchases via the beta/alpha channels - not straight from android studio. This post suggests it possible (see screen shot)

http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-test

推荐答案

从我的 IDE (Android Studio) 启动以下对我有用

The following worked for me launching from my IDE (Android Studio)

1) 转到您的 https://play.google.com/apps/publish/在开发者"帐户/设置/帐户详细信息/许可证测试下

1) Go to your https://play.google.com/apps/publish/Under 'Developer' Account/Settings/Account details/License Testing

2) 添加与您正在测试的设备对应的默认 Google Play"电子邮件地址

2) Add the 'Default Google Play' email address that corresponds with the device you are testing

来源:https://engineering.memrise.com/fast-in-app-billing-subscriptions-testing-8e68551b4e2f

这篇关于是否可以在 Android Studio 中本地调试 Google Play 的应用内计费?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 16:38