gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:03:33 25 4
gpt4 key购买 nike

我刚刚为我的应用创建了 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com