I am getting the above error while calling the rest api. I am using both retrofit2 and RxJava.
public class ServiceFactory { pu
In my case, it was enough to replace
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
with
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())