0
我使用Retrofit2。在服务器端SSL上添加后,请求不会执行。 onFailure方法获取下一个Throwable - javax.net.ssl.SSLHandshakeException:由对等关闭的连接。Retrofit2 SSLHandshakeException
初始化改造:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(InterfaceAPI.BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
附加超时连接到您的okhttp客户端 – steevoo