Retrofit2 SocketTimeOutException
问题 I setup for Retrofit : private Interceptor interceptor = new Interceptor() { @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request(); if (!NetworkUtil.isNetworkAvailable()) { request = request.newBuilder() .cacheControl(CacheControl.FORCE_CACHE) .build(); } Response response = chain.proceed(request); //Exception here if (NetworkUtil.isNetworkAvailable()) { String cacheControl = request.cacheControl().toString(); response = response.newBuilder()