I\'m going to send a simple get method to my server(it is Rails app) and get the result using RxJava and Retrofit. The thing that I did is:
My interface:
The problem is with the library being used.
I have replaced
implementation 'com.squareup.retrofit2:adapter-rxjava:2.4.0'
with
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
and used
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL).client(client)
.addConverterFactory(GsonConverterFactory.create(gson))
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.build();