@Override
                    public void onError(@NonNull Throwable e) {

                    }
compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0'
Created by yangle on 2017/7/4.
RxLifecycleDemo/app/src/main/java/com/yl/rxlifecycledemo/RxLifecycleComponentsActivity.java