An API Im making request on is returning a plain string (image url). Im using GSON with Retrofit.
This is the error message Retrofit is returning when Im making the request:
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
I added
.addConverterFactory(ScalarsConverterFactory.create())
But then when app is started it crashes with this error:
java.lang.NoClassDefFoundError: Failed resolution of: Lretrofit2/converter/scalars/ScalarsConverterFactory;
Im using the latest version of retrofit (2.9.0)
Does anyone have any idea why this would happen?
I tried this Retrofit with String response I tried ScalarsConverterFactory