在Google Play上管理Android应用程式 [英] Manage Android app flavors on Google Play

查看:150
本文介绍了在Google Play上管理Android应用程式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的应用创建了2种口味:登台和制作.

I just created 2 flavors for my app: Staging and Production.

一切似乎都可以在两种版本中正常工作,因此现在我想上传我的登台发行版apk(已签名),以便测试人员可以对其进行测试.

Everything seems to work well in both flavors so now I would like to upload my staging release apk (signed) so that testers can test it.

因为我的暂存应用程序具有不同的applicationId:

As I have a different applicationId for my staging app:

    stage {
        applicationId defaultConfig.applicationId + ".stage"
        versionName defaultConfig.versionName + "-stage"
        resValue "string", "app_name", "MyApp Staging"
    }

我是否需要在控制台播放控制台中创建一个新的应用程序并将此apk部署到新版本,还是可以使用同一应用程序?

Do I need to create a new App in console play console and deploy this apk to the new version or is there a way to use the same App?

现在,当我尝试上载暂存发行版应用程序时,出现以下错误:

Right now, when I try to upload the staging release app, I get the following error:

Upload failed
Your APK needs to have the package name com.my.app.

推荐答案

如果applicationId不同,则它必须是Play商店中的单独应用.这在 applicationId

If the applicationId is different, it would need to be a separate app in play store. This is on the documentation of applicationId

每个Android应用程序都有一个唯一的应用程序ID,看起来像Java包名称,例如com.example.myapp.此ID在设备和Google Play商店中唯一标识您的应用.如果您要上传新版本的应用,则应用ID(以及用于签名的证书)必须与原始APK相同-如果更改应用ID,Google Play商店会将APK视为完全不同的APK应用程序.因此,一旦发布您的应用程序,就永远不要更改应用程序ID.

Every Android app has a unique application ID that looks like a Java package name, such as com.example.myapp. This ID uniquely identifies your app on the device and in Google Play Store. If you want to upload a new version of your app, the application ID (and the certificate you sign it with) must be the same as the original APK—if you change the application ID, Google Play Store treats the APK as a completely different app. So once you publish your app, you should never change the application ID.

如果您不想污染"您的游戏商店,另一个不错的选择是使用

If you don't want to "pollute" your play store, one other good option is to use Beta by Fabric for free to simplify distribution of your staging builds for your internal testers and stake holders. Using this they can even download any of the older releases and will be informed of new updates as soon as it is released. There is no waiting time unlike Google Play Store where it might take sometimes few hours or more to make the update available to all the users. Recently Fabric has been bought by Google.

P.S:我只是Fabric Beta的快乐用户,与他们毫无关系.

P.S: I just a happy user of Fabric Beta and in no way related to them.

这篇关于在Google Play上管理Android应用程式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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