This means it’s missing a network_security_config. So to over this problem we need to create a new folder inside res folder.
Name the new folder xml. Inside this new folder create a file network_security_config.xml
and inside this xml file put the code below

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>