Networkonmainthreadexception With Retrofit-beta2 And Rxjava May 30, 2024 Post a Comment I recently upgraded from retroft-beta1 and this was working. I have the following interface for the API: public interface Service { @POST('path') Observable s Solution 1: From retrofit-beta2, calls to Observable methods now behave synchronously. So subscribeOn must be used: service.service() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(); Copy Share You may like these postsHow To Add Tls V 1.0 And Tls V.1.1 With RetrofitRetrofit: Sending Post Request To Server In AndroidHow To Use Retrofit In Android?Retrofit Error 2.0.2 Beta Error In Callback Does Not Override Abstract Method Onresponse(response) Post a Comment for "Networkonmainthreadexception With Retrofit-beta2 And Rxjava"