android 9 can not access the network problems

Recently wrote android program, customers reflect no way to access the Internet, I found a long time problem, and then himself tested no problem that way, then I think the new version is not the android and the spread of new features, and then ask the customer android versions too Sure android9, immediately check its related properties only to find android 9 requires access to the network address https protocol required for the job, the solution is to add a label to ignore the application's configuration file

 android:usesCleartextTraffic="true"

Here Insert Picture Description
Then you can be friends

Published 36 original articles · won praise 13 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_41392105/article/details/102833767