what does Method getResources not annotated with request type (e.g., GET, POST) mean?

后端 未结 3 1277
鱼传尺愫
鱼传尺愫 2021-01-19 06:02
private interface ResourcesApi {
        @POST(\"/synchronize\")
        void getResources(@Body Map> map,
                           


        
3条回答
  •  余生分开走
    2021-01-19 06:14

    It means the @POST annotation can't be found at runtime. Without the HTTP method type (and relative URL it contains), Retrofit cannot make the request.

    Are you using Proguard or another tool to trim "unused" code? If so, instruct it to keep Retrofit's annotations.

提交回复
热议问题