[英]Why can't I define In-app Products before having uploaded an APK in the Google Developer Console?
In the documentation for testing In-App-Purchases (IAPs) on Android, the following is stated: 在Android上测试应用程序内购买 (IAP)的文档中,陈述如下:
First, upload and publish in-app products that you want testers to be able to purchase.
首先,上传并发布您希望测试人员能够购买的应用内商品。 You can upload and publish in-app products in the Developer Console.
您可以在开发者控制台中上传和发布应用内商品。 Note that you can upload and publish your in-app items before you publish the APK itself .
请注意,您可以在发布APK本身之前上传和发布应用内商品 。
However, in my Google Developer Console, I can not define the In-app Products before having uploaded an APK? 但是,在我的Google Developer Console中,我无法在上传APK之前定义应用内商品? Does anyone know why?
有谁知道为什么?
Correct. 正确。 What Google is doing here makes no sense whatsoever.
谷歌在这里所做的事情毫无意义。 But the way to get around this is to upload an empty signed APK to alpha or beta with the BILLING permission, then you can add your in-app products.
但解决此问题的方法是使用BILLING权限将空签名的APK上传到alpha或beta,然后您可以添加应用内商品。
One way around this limitation is to develop with Register https://github.com/NYTimes/Register 解决此限制的一种方法是使用Register https://github.com/NYTimes/Register进行开发
It is a developer library/app designed to test in app billing. 它是一个开发人员库/应用程序,旨在测试应用程序结算。 In particular, once your app is using Register, you can test purchases without having to upload anything to the Play store.
特别是,一旦您的应用使用注册,您就可以测试购买而无需向Play商店上传任何内容。
You do need to upload an apk before you can create any in-app-billing products. 您需要先上传apk才能创建任何应用内结算产品。 However you don't need to publish it to production.
但是,您无需将其发布到生产中。 Just publish the apk to either alpha or beta testing, and then you will be able to create in-app-billing products without affecting your production app.
只需将apk发布到alpha或beta测试,然后您就可以在不影响生产应用的情况下创建应用内结算产品。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.