title: Android Network Security on API <24
body: <p>To communicate with back from my android app I use network-security-config.xml, which looks like</p>
  <pre><code>&lt;network-security-config&gt;
      &lt;base-config&gt;
          &lt;trust-anchors&gt;
              &lt;certificates src=&quot;@raw/my_ca&quot;/&gt;
              &lt;certificates src=&quot;system&quot;/&gt;
          &lt;/trust-anchors&gt;
      &lt;/base-config&gt;
  &lt;/network-security-config&gt;
  </code></pre>
  <p>where is my_ca - certificate (.pem file)</p>
  <p>On API &lt; 24 it's not working, how to solve this?</p>