
Retrofit2报错java.lang.IllegalArgumentException: Unable to create converter for class
检查BaseResponse 与父类定义了同名的变量。
Unable to create converter for com.example.data.model.BaseResponse<com.example.data.reponse.DataList>
for method ServerApi.getDatas
java.lang.IllegalArgumentException: Unable to create converter for com.example.data.model.BaseResponse<com.example.data.reponse.DataList>
for method ServerApi.getDatas
at retrofit2.Utils.methodError(Utils.java:54)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:126)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at com.sun.proxy.$Proxy14.getDatas(Unknown Source)
检查BaseResponse 与父类定义了同名的变量
更多推荐
所有评论(0)