I have a project made with Eclipse, Maven and Retrofit 1.3. I wanted to migrate to Android Studio and I had to import in gradle Retrofit 2.0.
After I made all the changes necessary to make it work, I am getting something unexpected.
I have my retrofit builder set like this:
Retrofit.Builder builder = new Retrofit.Builder()
                .baseUrl("http://localhost:8080/openbravo/org.openbravo.service.json.jsonrest")
                .client(httpClient)
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create(gson));
So my service methods were changed to use <Call<List<T>> instead of just  List<T>
When I execute a GET Method to login I get this response error:
Response{protocol=http/1.1, code=404, message=Not Found, url=http://localhost:8080/ADUser?_where=username%3D%27Openbravo%27}
But the url is supposed to be:
http://localhost:8080/openbravo/org.openbravo.service.json.jsonrest/ADUser?_where=username%3D%27Openbravo%27
Can anyone tell me why? I have no idea what is going on... This worked perfect on 1.3
 
     
    