Retrofit Android basic and simple issue

不问归期 提交于 2019-12-06 13:13:05

According to retrofit documentation your base url should only consist the first part of url in your case: Base url should be "http://xxxxxxx.com/ and add the other part in Post like this @POST("fileupload.php/"). Give it a try maybe it will work for you.

Thanks!

please check response in PostMan, if in postman you get same response as you told then this means that in your app you are getting error response which is in string format, thats why you are getting this type mismatch exception.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!