Custom HTTP method not working in Retrofit 2
问题 Hello I have used custom method in my code as below but it always gives me java.lang.IllegalArgumentException: method AUTH must not have a request body. My code is not working it always says: Custom method AUTH, must not have a Body @Headers("Content-Type: application/json") @HTTP(method = "AUTH", path = "login/{deviceId}", hasBody = true) Call<Success> getLogin( @Path("deviceId") int deviceId, @Body RequestBody password); I am using below dependancies. compile 'com.google.code.gson:gson:2.8