title: Android Webview page could not be loaded with HTTP hyperlink because ERR_CLEARTEXT_NOT_PERMITTED
body: <p>I'm working on an android native app where I'm loading a HTML string in WebView from strings.xml which has some hyperlink texts all. One hyperlink out of all of them is having <code>http</code> url and which is not getting opened within webView and throwing error as <code>ERR_CLEARTEXT_NOT_PERMITTED</code>. I'm already using <code>usesCleartextTraffic</code> settings in my app but still unable to use that.</p>
  <p><strong>AndroidManifest.xml</strong></p>
  <pre><code> &lt;application
      android:name=&quot;.com.app&quot;
      android:allowBackup=&quot;false&quot;
      android:icon=&quot;@mipmap/ic_hp_launcher&quot;
      android:networkSecurityConfig=&quot;@xml/network_security_config&quot;
      android:roundIcon=&quot;@mipmap/ic_hp_launcher_round&quot;
      android:supportsRtl=&quot;false&quot;
      android:theme=&quot;@style/AppTheme&quot;
      android:usesCleartextTraffic=&quot;true&quot;&gt;
  </code></pre>
  <p><strong>network_security_config.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;network-security-config&gt;
  &lt;debug-overrides&gt;
      &lt;trust-anchors&gt;
          &lt;!-- Trust user added CAs while debuggable only --&gt;
          &lt;certificates src=&quot;user&quot; /&gt;
          &lt;certificates src=&quot;system&quot; /&gt;
      &lt;/trust-anchors&gt;
  &lt;/debug-overrides&gt;
  
  &lt;base-config cleartextTrafficPermitted=&quot;true&quot;&gt;
      &lt;trust-anchors&gt;
          &lt;certificates src=&quot;system&quot; /&gt;
      &lt;/trust-anchors&gt;
  &lt;/base-config&gt;
  
  &lt;domain-config cleartextTrafficPermitted=&quot;true&quot;&gt;
      &lt;!-- Make sure your URL Server here --&gt;
      &lt;domain includeSubdomains=&quot;true&quot;&gt;https://xxxxxx.base.url&lt;/domain&gt;
      &lt;domain includeSubdomains=&quot;true&quot;&gt;http://.xxxx.org&lt;/domain&gt;
      &lt;trust-anchors&gt;
          &lt;certificates src=&quot;user&quot;/&gt;
          &lt;certificates src=&quot;system&quot;/&gt;
      &lt;/trust-anchors&gt;
  &lt;/domain-config&gt;
  </code></pre>
  
  <p><strong>UIClass.kt</strong></p>
  <pre><code>//Enabling JS for allowing all hyperlinks
      binding.webView.settings.javaScriptEnabled = true
      binding.webView.settings.javaScriptCanOpenWindowsAutomatically = true
  </code></pre>
  <p><strong>build.gradle</strong></p>
  <pre><code>minSdkVersion 28
  targetSdkVersion 30
  </code></pre>
  <p>Please let me know if I'm doing any mistake. Thanks in advance.</p>