How to solve Android P DownloadManager stopping with “Cleartext HTTP traffic to 127.0.0.1 not permitted”?

后端 未结 2 1587
情深已故
情深已故 2020-12-05 07:48

I have already defined a custom network security config and included it in my manifest as recommended here

res/xml/network_security_config.xml:

2条回答
  •  时光说笑
    2020-12-05 08:11

    Create a XML res/xml/network_security_config.xml

    
    
        
    
    

    Reference this file in your tag Application, inside AndroidManifest.xml. Like:

    android:networkSecurityConfig="@xml/network_security_config"
    

提交回复
热议问题