How to fix a “java.io.IOException: unexpected end of stream on Connection” exception in HTTPClient on .NetStandard

后端 未结 3 1503
北恋
北恋 2020-12-10 07:39

I have been scratching my head with this one for a while. I\'m building an Android app in Xamarin and I have a login POST request that mostly works, but will occasionally re

3条回答
  •  生来不讨喜
    2020-12-10 08:04

    You can just go the Android Project > Properties > AssemblyInfo.cs file. Open the AssemblyInfo file and add the following line at the end:

    [assembly: Application(UsesCleartextTraffic = true)]

    This helped me solve my problem. I hope it helps you also

提交回复
热议问题