Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-10-24:谈一谈Android P禁用http对我们开发有什么影响? #173

Open
MoJieBlog opened this issue Oct 24, 2019 · 3 comments

Comments

@MoJieBlog
Copy link
Collaborator

大家1024快乐。

@MoJieBlog MoJieBlog changed the title 2019-10-24:谈一谈Android P禁用http有什么影响? 2019-10-24:谈一谈Android P禁用http对我们开发有什么影响? Oct 24, 2019
@yline
Copy link

yline commented Jan 30, 2020

遇到过一次,禁用的结果就是导致Http的请求无效了。

我们的现象就是,http的图片展示不出来了。

最直接的解决方案:
1,让后台换链接,也应该要换
2,target 设置在27及以下。

@thormys
Copy link

thormys commented May 12, 2020

  • APP改用https请求
  • targetSdkVersion 降到27以下
  • res --> add : network_security_config.xml
 <?xml version="1.0" encoding="utf-8"?>
 <network-security-config>
     <base-config cleartextTrafficPermitted="true" />
 </network-security-config>

AndroidManifest.xml--> application :
android:networkSecurityConfig="@xml/network_security_config"

@mlinqirong
Copy link

无法访问http的请求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants