0.在有网的前提下
1.安装 Android Studio,*,Chrome浏览器
2.在在githab上搜索stetho,打开第一个facebook/stetho
3.在Gradle Scripts下的build.gradle里添加
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.facebook.stetho:stetho:1.4.1' }
4.接着在右上方点击 sync now 点击即可同步
5.新建一个Activity继承Application
public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Stetho.initializeWithDefaults(this); } }
4.在清单文件里配置
<application android:name=".MyApplication" android:allowBackup="true"> </application>
5.运行在真机上
6.打开*FQ,打开Chrome浏览器,输入chrome://inspect/#devices
7.打开inspect--->Resources--->web----->~~.db即可.