java.net.UnknownHostException: Unable to resolve host “”: No address associated with hostname and End of input at character 0 of

后端 未结 11 2097
滥情空心
滥情空心 2020-11-27 13:38

I\'ve created an app that loads a question from my web services, and it works fine. But, sometimes it crashes and I do not get the reason why this is happening, especially b

11条回答
  •  时光取名叫无心
    2020-11-27 14:19

    I had this issue on Android 10,

    Changed targetSdkVersion 29 to targetSdkVersion 28 issue resolved. Not sure what is the actual problem.

    I think not a good practice, but it worked.

    before:

    compileSdkVersion 29

    minSdkVersion 14

    targetSdkVersion 29

    Now:

    compileSdkVersion 29

    minSdkVersion 14

    targetSdkVersion 28

提交回复
热议问题