How to get string response from Retrofit2?

前端 未结 10 1500
时光取名叫无心
时光取名叫无心 2020-12-01 07:44

I am doing android, looking for a way to do a super basic http GET/POST request. I keep getting an error:

java.lang.IllegalArgumentException: Unable to creat         


        
10条回答
  •  独厮守ぢ
    2020-12-01 07:56

    thought it might be late to answer just use response.body()?.string() and you'll have your response as a string.

提交回复
热议问题