title: Accessing string resources inside network-security-config
body: <p>Is it possible to use <a href="https://developer.android.com/guide/topics/resources/string-resource" rel="noreferrer">string resources</a> inside <code>android:networkSecurityConfig</code> defined in AndroidManifest.xml?</p>
  
  <p>I have a config file like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;network-security-config&gt;
    &lt;domain-config&gt;
      &lt;domain includeSubdomains="true"&gt;mydomain.com&lt;/domain&gt;
      &lt;pin-set&gt;
        &lt;pin digest="SHA-256"&gt;@string/pin&lt;/pin&gt;
        &lt;pin digest="SHA-256"&gt;@string/pin_fallback&lt;/pin&gt;
      &lt;/pin-set&gt;
      &lt;trustkit-config enforcePinning="true" disableDefaultReportUri="true"&gt;
      &lt;/trustkit-config&gt;
    &lt;/domain-config&gt;
  &lt;/network-security-config&gt;
  </code></pre>
  
  <p>but my app doesn't seem to detect resources I define in <code>res/values/strings.xml</code>. Hardcoding these strings works just fine though.</p>