[Solved] Android Networking error: CLEARTEXT communication to www.xxxxx.xyz not permitted by network security policy


Android networking error: cleartext communication to www.xxxxx.xyz not allowed by network security policy


After targetsdkversion26, for security reasons, Google requires encrypted connections for Android applications, so an error will be reported when using HTTP for network access


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


Read More: