I'm facing that problem, when I make a call of retrofit, that call doesn't stop on breakpoint.
ClashResponse clashResponse = new ClashResponse();
clashApi = clashResponse.getClashApi();
clashApi.getAllArenas().enqueue(new Callback<String>() {
@Override
public void onResponse(Call<String> call, Response<String> response) {
ClashApiBuilder<ArenaData> clashApiBuilder = new ClashApiBuilder(ArenaData.class);
arenaList = clashApiBuilder.convert(String.valueOf(call));
}
@Override
public void onFailure(Call<String> call, Throwable t) {
t.getCause();
}
});
My gradle
//Retrofit
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
My builder of retrofit:
public ClashResponse(){
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(SERVER_URL)
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.build();
return retrofit.create(ClashApi.class);
}