比 Logcat 更加美观易用的异常信息接收器: CrashWoodpecker
来源:互联网 发布:ubuntu 14使用教程 编辑:程序博客网 时间:2024/05/29 16:21
因为我的 Android Studio 在使用的过程中, 经常会出现 App 崩溃了, 而 AS 自带的 logcat 并没有搜集到异常信息, 特别烦恼, 怎么折腾怎么重连都不痛快, 特别是对于那种 “启动崩” 的异常, 很难马上捕捉到, 丢失也是经常的.
所以我做了这么一个库, 仿造 Square 检测并展示内存泄露的 LeakCanary. 当开发过程中, 如果有没有处理的异常导致 crash, 使用了 CrashWoodpecker 以后, 便会起一个新的美观页面, 以很友好的方式即时展示异常信息. 更多内容可以参看一下我写在 GitHub 的文档:
CrashWoodpecker
An uncaught exception handler library like Square’s LeakCanary.
Getting started
NOTE: There is a big bug before VERSION 0.9.5, QAQ thank goodness, it has been fixed in version 0.9.5, please update to 0.9.5+.
In your build.gradle:
dependencies {
debugCompile
'me.drakeet.library:crashwoodpecker:0.9.7'
releaseCompile
'me.drakeet.library:crashwoodpecker-do-nothing:0.9.7'
}
In your Application class:
public
class
ExampleApplication
extends
Application {
@Override
public
void
onCreate() {
super
.onCreate();
CrashWoodpecker.fly().to(
this
);
}
}
And in your AndroidManifest.xml file:
<
application
android:name
=
".ExampleApplication"
// <--
...
...>
</
application
>
That is all! CrashWoodpecker will automatically show an Activity when your app crash with uncaught exceptions in your debug build.
Demo apk download: LittleWood.apk
源代码: https://github.com/drakeet/CrashWoodpecker
- 比 Logcat 更加美观易用的异常信息接收器: CrashWoodpecker
- 异常信息接收器CrashWoodpecker
- crash日志 异常信息接收器CrashWoodpecker
- 使你的代码变得更加美观,易读
- [Linux] 美观易用的Ubuntu
- 用ADB的logcat打印内核信息
- 更加安全的比实际的股票
- Android 为什么动态广播接收器比静态广播接收器要接受的早
- adb logcat 的帮助信息
- 让你的Tex代码更加美观就这么简单----Tex代码的自动格式化
- 【调试】Logcat中不提示异常信息或是提示让人难以捉摸的解决之道
- 给vc界面添加皮肤,让你的界面更加美观!
- 简单易用美观的日期及时间控件
- Intel和Nokia宣称MeeGo将比Android更加开放且方便易用
- logcat信息
- android studio logcat异常调试信息解析错误方法
- onScreenHint,一个比toast更加灵活的提示类
- 努力学习,要比当初练球的时候更加努力
- Android studio 删除无用代码
- Python -- 字典与字符串的互转
- android studio添加so库
- tomcat7.0 远程DEBUG
- UVA - 10825
- 比 Logcat 更加美观易用的异常信息接收器: CrashWoodpecker
- scikit-learn入门到精通(二):seting和estimator
- hdu 2212 DFS
- 基础差不得不学啊(unity shader中的矩阵学习一)
- 数据库配置环境
- 读OpenGL游戏编程笔记1
- Spring security4.1.4 如何实现api接口和页面的双重拦截
- 屏幕适配 swift纯中文翻译 响应式编程 环信 第三方IM聊天的SDK
- spel表达式解析