添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
侠义非凡的冰棍  ·  ShellExecute, ...·  2 月前    · 
强健的大白菜  ·  java - pass multiple ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

java.lang.RuntimeException: Failed to parse XML configuration from network_security_config

Ask Question
// domain name
<domain-config cleartextTrafficPermitted="true">
    <domain tools:ignore="NetworkSecurityConfig">org.dukehealth.colectiv</domain>
    <trust-anchors>
        <!--<certificates src="user" />-->
        <certificates src="system" />
    </trust-anchors>
    <pin-set expiration=" Monday, 9 December, 2052"
        tools:ignore="NetworkSecurityConfig">
        <pin digest="SHA-256"
            tools:ignore="NetworkSecurityConfig">89:0B:5E:8E:D3:62:BC=</pin>
        <!-- Backup Pin for: currency-converter-demo.pdm.approov.io -->
        <pin digest="SHA-256"
            tools:ignore="NetworkSecurityConfig">89:0B:5E:8E:D3:62:BC:E0:F5:20:78:7E:CA:1</pin>
    </pin-set>
    <!-- TrustKit Android API -->
    <!-- enforce pinning validation -->
    <trustkit-config enforcePinning="true" disableDefaultReportUri="true">
        <!-- Add a reporting URL for pin validation reports -->
</domain-config>

your text

i got error not able to parse xml network security config i also add this to mainfest too please help

Have you added the below namespace: xmlns:tools="http://schemas.android.com/tools" Also you need to have network-security-config tag and xml tag in your config xml I am able to use your config in my project.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.