安卓:出版草稿APK和应用内计费测试 - 怎么样? [英] Android: Publishing draft APKs and In-App Billing Testing - how?

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

问题描述

谷歌的文档指出,你应该上传草稿APK并添加应用内产品到 - 然后你会为能够与您的开发者和其他链接的测试帐户测试 - 这就是它说...

也说,你需要使用新的开发者控制台添加产品的计费API的V3 - 但上传的APK新的控制台立即发布它! - 风力发电机组有谷歌!!!!!

您无法取消发布APK /恢复到先前的任一 - 的活的版本目前是测试版 - 当心废话!

所以,你重新上传老版本来解决这个问题,然后揣摩出如何上传草稿APK。切换到旧的控制台,您可以上传,而不是激活的APK - !?然而,这并没有得到标记为草稿,所以我不知道这是他们的意思

您可以将您的应用产品,这一点,但运行APK设备上/试图购买任何东西,在一个消息结果称此应用程序的当前版本的未配置为应用内结算'..

在这一点上,你意识到你兜兜转转一个公司谁的文档是废话一大堆,所以你再打这个地方的帮助! - 请? :)

一定有人成功地得到这个工作 - 他们会愿意分享的具体步骤,得到一个新的APK上传与应用内商品的草稿这实际上可以购买(用于测试目的),请

我走了发誓在谷歌论坛上很多:)


解决方案

1)把你的code的任何版本,并添加以下权限是:

 <使用许可权的android:NAME =com.android.vending.BILLING/>

具有结算实现的其余部分是在这个APK完全可选的。

2)出口,并签署您的签名证书的APK,并确保您递增版本code。

3)上传该APK到谷歌使用旧版本的开发者控制台的播放,但做的的激活它。

您大功告成。您现在应该能够在应用产品目前的补充。现在,您可以开票code的其余设备上的在线界面添加到您的应用程序并调试它像往常一样,和创造产品。这可能需要几个小时(截至24)任何产品创建要在您的应用程序进行访问。

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...

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!!!!!

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

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!?

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? :)

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?

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

解决方案

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

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

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

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

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

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.

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

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