一、Stecho使用
1、使用Stecho调试工具前提条件:Android App + OKHTTP请求+Chrome浏览器
2、引入依赖
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
3、OKHTTP添加拦截器
builder.addNetworkInterceptor(new StethoInterceptor());
4、Application 中Stecho的初始化
Stetho.initializeWithDefaults(this);
5、打开Chrome浏览器:chrome://inspect/
![](https://img.haomeiwen.com/i8014044/c68406937a6dbde0.jpg)
网友评论