Only|Only the original thread that created a view hierarchy can touch its views

翻译一下标题:只有创建这个view的线程才能操作这个view
这个问题是我在使用RxJava嵌套请求数据时发生的异常错误信息因为ok的最终的回调接口,即onResponse运行在子线程 由于没有使用RxJava切换到UI线程才发生了这样的错误
解决
Only|Only the original thread that created a view hierarchy can touch its views
文章图片
发送二次请求 return apiService.getReleaseData(releaseParams ).subscribeOn( Schedulers.io() ); //切换到子线程请求
【Only|Only the original thread that created a view hierarchy can touch its views】完事

    推荐阅读