gpt4 book ai didi

android - 应用计费测试

转载 作者:太空狗 更新时间:2023-10-29 16:23:50 26 4
gpt4 key购买 nike

我将我签名的应用程序上传到安卓市场,我制作了一些我发布的应用程序内容(但不是应用程序)。现在我想在真实设备上购买我自己的产品:我是否需要使用我上传到市场的相同签名 .apk 进行测试?还是我可以用 Eclipse 启动的“普通”应用程序?

因为当我使用 Eclipse 启动我的应用程序并发送 requestPurchase() 时,弹出窗口告诉我该应用程序版本尚未准备好进行市场购买...

You do not need to publish your application to perform end-to-end testing with real product IDs; you only need to upload your application as a draft application. However, you must sign your application with your release key before you upload it as a draft application. Also, the version number of the uploaded application must match the version number of the application you load to your device for testing.

正如谷歌文档中所写,市场上应用程序的版本号和设备上应用程序的版本号相同:/

最佳答案

您需要使用已签名的 APK,与您上传到应用市场的 APK 相同。

您还需要使用与开发者帐户不同的 gmail 帐户才能访问市场。

这里有一个很好的教程:Simple In App Billing有一些替代解释

测试开发人员指南非常详尽:Testing Billing Statically

关于android - 应用计费测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7188494/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com