自定义HTTP方法在Retrofit 2中不起作用

您好我在我的代码中使用了自定义方法,如下所示,但它总是给我

java.lang.IllegalArgumentException:方法AUTH必须没有请求体。

我的代码不工作总是说: Custom method AUTH, must not have a Body

 @Headers("Content-Type: application/json") @HTTP(method = "AUTH", path = "login/{deviceId}", hasBody = true) Call getLogin( @Path("deviceId") int deviceId, @Body RequestBody password); 

我正在使用以下依赖。

 compile 'com.google.code.gson:gson:2.8.1' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.squareup.okhttp3:okhttp:3.8.1' compile 'com.squareup.okhttp3:logging-interceptor:3.4.1' 

你能帮我么。