51. Rxjava + RxAndroid + Retrofit combination Problems
51. Rxjava + RxAndroid + fit combination problem 1. Caused by: java. lang. IllegalArgumentException: Unable to create call adapter for rx. Observable
Fix:
Compile 'com. squareup. Merge fit: converter-gson: 2.0.0-beta2'
This. invalid fit = new invalid fit. builder (). baseUrl (GankApi. BASE_URL ). addCallAdapterFactory (RxJavaCallAdapterFactory. create ()). addConverterFactory (GsonConverterFactory. create (this. gson )). client (okHttpClient ). build ();
2. Invalid fit. HttpException: HTTP 404 Not Found
** Fix: ** after login fit2.0: The BaseUrl should end with a slash (/), and requests such as @ GET should not start with a slash.
3. java. lang. AbstractMethodError: abstract method "adjust fit. CallAdapter adjust fit. CallAdapter $ Factory. get"
Fix: 'Com. squareup. Adjust fit: adapter-rxjava: 2.0.0-beta1'
For'Com. squareup. Adjust fit: adapter-rxjava: 2.0.0-beta2'