Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to evaluate the expression Cannot find source class for java.util.List

Tags:

retrofit

I response this error when get JSON data by retrofit.

List<NewLicense> result = null;
Call<List<NewLicense>> serviceResult = ShahrdariApp.getShahrdariWebService().getLicenses(Configuration.getInstance().getString(SharedPrefs.MAC_ADDRESS), id);

try {
    Response<List<NewLicense>> response = serviceResult.execute();
    result = response.body();
    Log.d("responseCode", String.valueOf(response.code()) );

} catch (Exception e) {
    exceptionHandling(e);
    Log.d("responseCode", String.valueOf(e.getMessage()) );
}
return result;
like image 504
mit Jahad Avatar asked Nov 27 '25 00:11

mit Jahad


1 Answers

Simply restarting the IDE via File -> Invalidate caches can often solve this issue.

like image 157
Simao Gomes Viana Avatar answered Nov 28 '25 17:11

Simao Gomes Viana