I have a strange issue. My app is using http to connect to a server. It works fine in many devices. However, in Xiaomi devices which has Android 9, it gives me this error: In the AndroidManifest.xml I have this: My network_security_config.xml file: Also, I have all the permission to connect to the internet. It works fine in Many devices