Google Play console reporting crashes from unreleased applications

时光怂恿深爱的人放手 提交于 2019-11-30 04:44:00

As we are interested in publishing only release applications, we may adopt following strategy to get rid of messing up crash reports :

./build.gradle :

android {
    ...
    defaultConfig {
        applicationId "my.app.package"
        ...
    }
    ...
    buildTypes {
        release {
            ...
        }
        debug {
            ...
            applicationIdSuffix ".dev"
        }
    }
...
}

The Developer Console only reports crashes from published version numbers (either in alpha, beta or production).

So my solution is very simple:

  1. After publishing a new version, the first thing I do is increase the versionCode in the manifest. And I only use this version number while developing. This way, no crash is sent to the console.
  2. Then, when I'm ready to publish again, I increase the versionCode once more. This way I make sure new crashes will only come from the published version.

EDIT:

Crashes from unpublished versions will still appear on the console under the 'All versions' option. So take this answer as a way to identify and filter those crashes, not to prevent them from being logged.

I also faced the same issue.
It shows Crash reports when I go to All applications -> -> Dashboard -> Crashes

But if I go directly to Android Vitals -> ANRs & crashes it doesnt show anything.

Anyway for the first case you can click on 'View details' and select 'Hide' from dropdown menu for each crash type reported.

This is just a temporary fix , but I think Google has to provide proper fix for it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!