测试 Android 在应用计费中,应用无法在测试模式下运行

Testing Android In App Billing, app do not work in Test mode

我已经在 Alpha 版中发布了我的应用程序并尝试测试应用程序内购买。 但是我没有在第一个 IAP 对话框中看到测试信息。它作为一个真正发布的应用程序工作! 怎么了?可能是什么问题?

您应该将应用程序安装为测试许可帐户。如果您的电子邮件地址未添加到许可测试帐户列表中,则您的购买将是真实购买,并会产生实际费用。

Testing with real transactions

With alpha/beta test groups, real users (chosen by you) can install your app from Google Play and test your in-app products. They can make real purchases that result in actual charges to their accounts, using any of their normal payment methods in Google Play to make purchases. Note that if you include test license accounts in your alpha and beta distribution groups, those users will only be able to make test purchases.

查看Setting Up Test Accounts