Android:发布草稿 APK 和应用内计费测试 - 如何? [英] Android: Publishing draft APKs and In-App Billing Testing - how?

查看:15
本文介绍了Android:发布草稿 APK 和应用内计费测试 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 的文档指出,您应该上传草稿"APK 并将您的应用内产品添加到其中 - 然后您将能够与您的开发人员和其他关联的测试"帐户进行测试 - 这就是它所说的......

Google's documentation states that you should upload a 'draft' APK and add your In-App Products to that - you will then to able to test with your developer and other linked 'test' accounts - that's what it says...

它还说您需要使用新"开发者控制台来为账单 API 的 v3 添加产品 - 但使用新控制台上传 APK 会立即发布它!!!- WTG 那里有谷歌!!!!!!

It also says you need to use the 'new' Developer Console to add products for v3 of the billing API - but uploading an APK with the new console instantly publishes it!!! - WTG there Google!!!!!

您也不能取消发布 APK/恢复到较早的版本 - 实时"版本现在是测试版本 - 当心这些废话!!

You cannot unpublish an APK/revert to an earlier one either - the 'live' versions is now the test version - BEWARE of this nonsense!!

因此,您重新上传旧版本以解决该问题,然后尝试弄清楚如何上传草稿"APK.切换到旧控制台,您可以上传而不是激活"APK - 但是这不会被标记为草稿",所以我不确定这就是他们的意思!?

So you re-upload the old version to fix that and then try to figure-out how to upload a 'draft' APK. Switching to the old console, you can upload and not 'Activate' an APK - however this doesn't get marked as 'draft' so I'm not sure that's what they mean!?

您可以向其中添加您的应用内产品,但是在设备上运行该 APK/尝试购买任何东西时,会显示一条消息,指出此应用的当前版本未配置为应用内结算"..

You can add your In-APp products to that, but running that APK on a device/attempting to purchase anything, results in a message saying the 'current version of this application is not configured for In-App Billing'...

此时,您意识到自己正在与一家公司的文档打交道,该公司的文档很多都是无稽之谈,因此您求助于这个地方寻求帮助!- 请?:)

At this point you realise you're going around in circles with a company who's documentation is a lot of nonsense so you resort to this place for help! - please? :)

一定有人设法让它发挥作用 - 他们是否愿意分享将新 APK 上传为草稿"以及可以实际购买(用于测试目的)的应用内产品的确切步骤?

Someone must have managed to get this to work - would they care to share the EXACT steps for getting a new APK uploaded as 'Draft' with In-App Products which can actually be purchased (for testing purposes) please?

我现在要在 Google 论坛上发誓很多:)

I'm off to swear a lot on the Google forums now :)

推荐答案

1) 获取任何版本的代码并为其添加以下权限:

1) Take any version of your code and add the following permission to it:

<uses-permission android:name="com.android.vending.BILLING" />

在此 apk 中,其余的计费实施完全是可选的.

Having the rest of the billing implementation is completely optional in this apk.

2) 将其导出并使用您的签名证书对 apk 进行签名,并确保您增加了版本代码.

2) Export it and sign the apk with your signing certificate, and make sure you incremented the version code.

3) 使用旧版本的 Developer Console 将 apk 上传到 Google Play,但不要激活它.

3) Upload the apk to Google Play using the old version of the Developer Console, but do not activate it.

你已经完成了.您现在应该可以添加应用程序产品了.您现在可以将其余的计费代码添加到您的应用程序中,并像往常一样在设备上调试它,并在在线界面中创建产品.您创建的任何产品可能需要几个小时(最多 24 个)才能在您的应用中访问.

You're done. You should now be able to add in app products now. You can now add the rest of the billing code to your app and debug it on the device as usual, and create products in the online interface. It may take a few hours (upto 24) for any products you create to be accessible in your app.

这篇关于Android:发布草稿 APK 和应用内计费测试 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆