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

前端 未结 30 2589
庸人自扰
庸人自扰 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
    闹比i (楼主)
    2020-11-22 01:22

    There is this android library called Sherlock. It gives you the full report of crash along with device and application information. Whenever a crash occurs, it displays a notification in the notification bar and on clicking of the notification, it opens the crash details. You can also share crash details with others via email or other sharing options.

    Installation

    android {
        dataBinding {
          enabled = true
        }
    }
    
    compile('com.github.ajitsing:sherlock:1.0.0@aar') {
        transitive = true
    }
    

    Demo

提交回复
热议问题