解决方法:最简单的就是在AndroidManifest.xml的application中添加如下一条属性即可:android:usesCleartextTraffic="true" 文章转自:https://www.cnblogs.com/lichuangblog/p/10773187.html