title: android api 28 - application not installing due to Cleartext HTTP traffic not permitted
body: <p>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"</p>
  
  <p>after some searched , i've tried some approaches, i've tried some of them and finally reach to this </p>
  
  <p>I created a file in xml directory :network_security_config</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;network-security-config&gt;
      &lt;domain-config cleartextTrafficPermitted="true"&gt;
          &lt;domain includeSubdomains="true"&gt;marketaghili.ir&lt;/domain&gt;
      &lt;/domain-config&gt;
  &lt;/network-security-config&gt;
  </code></pre>
  
  <p>and add this line to my application in manifest :</p>
  
  <pre><code>android:networkSecurityConfig="@xml/network_security_config"
  </code></pre>
  
  <p>after that I made my apk file but its not installing , it just says the app not installed .</p>
  
  <p>How can I fix this ? </p>