I installed my app on different versions and it works find , I recently tried to install it on android api 28 (android 9 ) and it doesn't get the data from internet and it shows me this error : "Cleartext HTTP traffic not permitted"
after some searched , i've tried some approaches, i've tried some of them and finally reach to this
I created a file in xml directory :network_security_config
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">marketaghili.ir</domain>
</domain-config>
</network-security-config>
and add this line to my application in manifest :
android:networkSecurityConfig="@xml/network_security_config"
after that I made my apk file but its not installing , it just says the app not installed .
How can I fix this ?