Chars无法拦截请求问题

Client SSL handshake failed - Remote host closed connection during handshake

这个是因为SSL需要证书;

1.在项目res目录下新增一个文件夹,命名xml,并且新建一个xml文件,可以命名为network_security_config.xml



    
        
            
            
        
    

2. 在AndroidManifest.xml文件需要加入以下配置: 

android:networkSecurityConfig="@xml/network_security_config"
    android:theme="@style/AppTheme">

你可能感兴趣的:(android)