android - 在 Google Play 上管理 Android 应用风格

标签 android google-play android-productflavors

我刚刚为我的应用创建了 2 种风格:登台和生产。

一切似乎在两种版本中都运行良好,所以现在我想上传我的暂存版本 apk(已签名),以便测试人员可以对其进行测试。

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

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

我是否需要在 console play console 中创建一个新应用程序并将此 apk 部署到新版本,或者有没有办法使用相同的应用程序?

现在,当我尝试上传临时发布应用时,出现以下错误:

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

最佳答案

如果 applicationId 不同,则它需要是 Play 商店中的单独应用。这是在 applicationId 的文档中

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.

如果您不想“污染”您的 Play 商店,另一个不错的选择是使用 Beta by Fabric免费为您的内部测试人员和利益相关者简化临时构建的分发。使用它,他们甚至可以下载任何旧版本,并会在新更新发布后立即收到通知。与 Google Play 商店不同,没有等待时间,有时可能需要几个小时或更长时间才能让所有用户获得更新。最近 Fabric 被谷歌收购。

P.S:我只是 Fabric Beta 的快乐用户,与他们没有任何关系。

关于android - 在 Google Play 上管理 Android 应用风格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43707627/

相关文章:

Android - 如何动态添加 ImageView ?

android - 如何在 Android 上塑造 webview?

java - 如何获取Firebase用户数据

android - Google Play 控制台 - 无法编辑草稿

android - 播放商店 : Publishing status: Removed - APK REQUIRES VALID PRIVACY POLICY​

jenkins - Jenkins-在执行脚本中设置环境变量

android - versionNameSuffix用于产品口味

java - 如何在一个 Activity 中有多个按钮

android - flavor 的不同 ndk 代码

android - 找不到包名称 processAppDebugGoogleServices 的匹配客户端