Android RequestBody.create()方法过时替代

原因 原方法过时

  RequestBody.create("application/json;charset=UTF-8".toMediaTypeOrNull(),"")

解决:方法替代:

 "".toRequestBody("application/json;charset=UTF-8".toMediaTypeOrNull())

猜你喜欢

转载自blog.csdn.net/qq_28643195/article/details/108574514