java.io.IOException: unexpected end of stream on Connection in android

后端 未结 10 1113
你的背包
你的背包 2020-12-01 12:40

I have web service URL, it working fine. It gives the JSON data.

When I am using HttpURLConnection and InputStream, I am getting this erro

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 13:27

    I have the same issue. This error is caused by the server-side only supports http2. You need to update JDK to a version that supports http2 (>=jdk9) to fix this issue.

提交回复
热议问题