一、简介 okHttp3要设置OkHttpClient的TimeOut,需要通过 OkHttpClient.Builder 来设置。如下代码: OkHttpClient client = new OkHttpClient.Builder() .connectTim