【问题标题】:Unable to Change the Android App Name on Crashlytics无法在 Crashlytics 上更改 Android 应用名称
【发布时间】:2017-11-09 23:57:57
【问题描述】:

当我在我的 android studio 项目上使用 gradle 命令 assembleAlpha crashlyticsUploadDistributionAlpha 并通过 Beta by Chrashlytics 应用程序安装 alpha 版本时,我的应用程序的应用程序名称不好。

在 android studio 我这样配置我的项目:

applicationId "com.mobile.example"

`

app
   |-src
   |   |-beta
   |   |    |-res
   |   |       |-values
   |   |          |-strings.xml (app_name 'Example Beta')
   |   |-main
   |   |    |-res
   |   |       |-values
   |   |          |-strings.xml (app_name 'Example')
`

app.gradle:

`android {
    ...
    buildTypes {
       beta {
         debug {
             applicationIdSuffix ".debug"
             buildConfigField "boolean", "REPORT_CRASHES", "false"
         }
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
             signingConfig signingConfigs.release
             debuggable false
         }
    }
}

`

在 fabric.io 仪表板上,com.mobile.example.beta 的应用名称设置为 Example BetaExamplefor packageName: com.mobile.example

但是当我下载/安装我的应用程序时,应用程序名称总是Example

你知道我的配置有什么问题吗?

【问题讨论】:

  • 来自 Fabric 的 Mike 在这里 - 您是否关心正在安装的应用程序的包名称或它的名称?您在 Fabric 仪表板和 AndroidManifest.xml 中看到了什么名称?
  • 我担心正在安装的应用程序的名称。在我的仪表板上,名称设置为 Example Beta(这是针对 com.mobile.example.beta 包的)您想了解有关 AndroidManifest 的哪些信息?
  • 在 AndroidManifest.xml 中您的应用程序节点的 android:label 字段下的 AndroidManifest - 您看到什么值。
  • 值为:android:label="@string/app_name"
  • 我认为您需要联系 support(at)fabric(dot)io,以便我们可以通过日志进一步深入研究。

标签: android crashlytics google-fabric fabric.io


【解决方案1】:

注意:您必须是组织中的管理员才能更新应用名称。

要重命名您的应用,请前往您应用的设置,然后选择您要更改其名称的应用,然后点击当前名称左侧的编辑按钮。进行更改,然后单击蓝色复选标记进行保存。

This snippet 允许覆盖 Crashlytics 发现和报告的包名称

【讨论】:

    猜你喜欢
    • 2013-11-12
    • 1970-01-01
    • 2018-02-01
    • 2018-01-07
    • 1970-01-01
    • 2015-12-13
    • 1970-01-01
    • 1970-01-01
    • 2013-08-19
    相关资源
    最近更新 更多