一个简单的Crash捕获工具,会将崩溃日志保存到本地.
-
add dependency
debugCompile 'yifeiyuan.library.crashcatcher:crashcatcher:0.0.2'
releaseCompile 'yifeiyuan.library.crashcatcher:crashcatcher-no-op:0.0.2'
-
在Application里添加代码:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
CrashCatcher.ready().toCatch(this);
}
}
That's all!
还在开发中,还比较简陋!~
@drakeet