Getting a JSONException: end of input at character 0

后端 未结 6 1818
名媛妹妹
名媛妹妹 2020-11-30 12:41

I have an API in php, that sends data in JSON format. I made the following code, that works fine when I am on wifi. But when I want to download the data from the API when

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 13:17

    This kind of error comes up when response is null.Print Json respone in logcat

    Log.e ( "response", "" + response ), or you can check response on postman also.

提交回复
热议问题