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