How do I obtain crash-data from my Android application?

前端 未结 30 2522
庸人自扰
庸人自扰 2020-11-22 01:10

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance

30条回答
  •  -上瘾入骨i
    2020-11-22 01:33

    I found one more great web application to track the error reports.

    https://mint.splunk.com/

    Small number of steps to configure.

    1. Login or sign up and configure using the above link. Once you done creating a application they will provide a line to configure like below.
    Mint.initAndStartSession(YourActivity.this, "api_key");
    
    1. Add the following in the application's build.gradl.
    android {
    ...
        repositories {
            maven { url "https://mint.splunk.com/gradle/"}
        }
    ...
    }
    
    dependencies {
    ...
        compile "com.splunk.mint:mint:4.4.0"
    ...
    }
    
    1. Add the code which we copied above and add it to every activity.

      Mint.initAndStartSession(YourActivity.this, "api_key");

    That's it. You login and go to you application dashboard, you will get all the error reports.

    Hope it helps someone.

提交回复
热议问题