47
解决 Android 28 不能请求 HTTP 接口的问题 · Issue #5 · collinxz-coder/blog · GitH...
source link: https://github.com/collinxz-coder/blog/issues/5?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Comments
所以我们要请求 HTTP 接口则需要多做一些配置来开启 HTTP 的支持。 在 Android 项目的
这个方式的优点是配置简单,但缺点是全局所有的 API 都支持 HTTP。出于安全起见,我们应该手动配置支持 HTTP 的白名单。这就是我们说的第二种方式。 详细内容参见谷歌安卓开发文档网络安全配置章节。我们这只简单介绍配置步骤:
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK