首先在应用App的build.gradle中添加如下代码:
//谷歌浏览器查看 本地数据库
implementation 'com.squareup.okhttp:okhttp:2.7.5'
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.7.5'
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.1'
接着,在应用App的application类的oncreate方法中添加如下代码:
Stetho.initializeWithDefaults(this);
new