Retrofit Post Parameter

前端 未结 6 980
无人共我
无人共我 2020-12-08 06:37

I am implementing login feature and for that using Post request but i am getting error saying

\"retrofit.RetrofitError: com.squareup.okhttp.interna

6条回答
  •  隐瞒了意图╮
    2020-12-08 07:10

    "JSON CONVERSION

    Retrofit uses Gson by default to convert HTTP bodies to and from JSON. If you want to specify behavior that is different from Gson's defaults (e.g. naming policies, date formats, custom types), provide a new Gson instance with your desired behavior when building a RestAdapter. Refer to the Gson documentation for more details on customization."

    See link for more info: http://square.github.io/retrofit/

提交回复
热议问题