SSL Exception when using Volley

前端 未结 3 1143
孤城傲影
孤城傲影 2021-02-04 11:20

I\'m using Volley in Android to perform my app requests. Unfortunately, I\'m getting the following error:

com.android.volley.NoConnectionError: javax.net.ssl.SSL         


        
3条回答
  •  隐瞒了意图╮
    2021-02-04 12:12

    The only method that worked for me was this

    first put below method in your project Application class

    private void updateAndroidSecurityProvider() {
        try { 
            ProviderInstaller.installIfNeeded(this); 
        } catch (Exception e) {
            e.getMessage(); 
        } 
    }
    

    and then call it in onCreate method.

    I'm not faced any issue yet.

    reference link

提交回复
热议问题