Adding the uses-sdk fields in Androids manifest file causes crash

前端 未结 2 1047
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 16:21

For some reason, when adding the uses-sdk fields in Android\'s manifest file causes crash. I\'ve not had this happen before but I can\'t get rid of it now.

The relevant

2条回答
  •  情书的邮戳
    2021-01-23 16:59

    The error is NetworkOnMainThreadException Starting with ICS, you cannot do any network access on main thread. You should probably use AsyncTask where you do network access.

提交回复
热议问题