Question
Android networking error: cleartext communication to www.xxxxx.xyz not allowed by network security policy
Question
After targetsdkversion26, for security reasons, Google requires encrypted connections for Android applications, so an error will be reported when using HTTP for network access
Solution:
1. Targetsdkversion dropped below 27
Pre connect unencrypted before targetsdkversion 27
2. Modify the androidmanifest.xml configuration file
Add the following attributes in the application tab
android:usesCleartextTraffic="true"