Solved - Cleartext HTTP Traffic To YOUR-API.DOMAIN.COM Not Permitted (targetSdkVersion="28")

Geeting error Cleartext HTTP traffic to YOUR-API.DOMAIN.COM not permitted after changing Target SDK Version 28 or Android 9.0 API Level 28 - Pie (targetSdkVersion="28").

Solved
 
After changes of API version 9.0 getting the error Cleartext HTTP traffic to YOUR-API.DOMAIN.COM not permitted (targetSdkVersion="28"). in xamarin, xamarin.android and android studio.
 
Two steps to solve this error in xamarin, xamarin.android and android studio.
 
Step 1
 
Create file resources/xml/network_security_config.xml.
 
In network_security_config.xml, 
  1. <?xml version="1.0" encoding="utf-8" ?>  
  2. <network-security-config>  
  3.   <domain-config cleartextTrafficPermitted="true">  
  4.     <domain includeSubdomains="true">your.api.domain.com</domain>  
  5.   </domain-config>  
  6. </network-security-config>  
Step 2 - update AndroidManifest.xml
 
Add android:networkSecurityConfig="@xml/network_security_config" on application tag.
 
e.g,
  1. <application android:label="your App Name" android:icon="@drawable/icon" android:networkSecurityConfig="@xml/network_security_config" 
Happy Coding :-))