简体   繁体   English

为什么我无法在Google Developer Console中上传APK之前定义应用内商品?

[英]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.

相关问题 无法在 Google Play 管理中心添加应用内商品 - Can't Able to Add In-App Products at Google Play Console 无需在Google Play开发者控制台中注册帐户即可进行应用内结算 - In-App billing without having account at Google play developer console 我无法创建Google开发者控制台 - I can't create a google developer console Google Play控制台:您的应用尚没有任何应用内商品 - Google Play Console: Your app doesn't have any in-app products yet 谷歌游戏控制台。 您的应用还没有任何应用内商品 - Google Play Console. Your app doesn't have any in-app products yet Google Play应用内购买未检测到我在开发人员控制台中创建的产品 - Google play In-app purchase not detecting the product I have created in developer console 我将应用程序上载了带有密钥库的Google开发者控制台… - I uploaded an application on Google developer console with a key-store… 我在Google Developer Console中发布apk有问题吗? - I have an issue with posting the apk in Google Developer Console? Google Play开发者控制台为上载的APK文件的sha1摘要提供了不同的值 - Google Play developer console gives different values of sha1 digest of uploaded apk files Google Play开发者控制台在上传的Apk的“本机平台”部分中显示DS_Store - Google play developer console shows DS_Store in Native Platforms section of uploaded Apk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM