1.在使用okhttp发请求是,总是报close异常,debug,发现OkHttpClient的networkInterceptors多了个 OkHttp3Interceptor (com.android.tools.profiler.agent.okhttp),google了一下,才知道,是因为在Edit Configurations中开启了
“Enable advanced profiling”,去调这个设置就可以了。
Edit Configurations -> Profiling, and disable “Enable advanced profiling”. This feature is not available with API <=19
关键字:OkHttp3Wrapper (com.android.tools.profiler.support.network.okhttp)