Exception thrown on Scheduler.Worker thread. Add onError
handling
用Observable是不是没有重写onError方法处理异常,可以全局搜
示例代码:
Observable.timer(defaultCountDownTime, TimeUnit.MILLISECONDS)
.compose(this.bindToLifecycle())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1() {
@Override
public void call(Long aLong) {
}
});
上面代码就是没有重写onError,出错时就闪退了