java.lang.IllegalArgumentException: No Retrofit annotation found. (parameter #1) for method ApiService.getMethod
时间:2018-08-18 15:26:33
收藏:0
阅读:1765
@FormUrlEncoded @POST("getMethod") Observable<Bean> getMethod(String field);
今天在写Retrofit 网络接口时,报错:
java.lang.IllegalArgumentException: No Retrofit annotation found. (parameter #1) for method ApiService.getMethod
其中正确的写法应该是:
@FormUrlEncoded @POST("getMethod") Observable<Bean> getCity(@Field("field") String field);
评论(0)