AS查看数据库

2020-10-12  本文已影响0人  起点_882d

dependencies {

// Stetho core

compile 'com.facebook.stetho:stetho:1.3.1'

//If you want to add a network helper

compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'

}

public class MyApplication extends Application {

    @Override

    public void onCreate() {

        super.onCreate();

        init();

    }

    private void init(){

        Stetho.initializeWithDefaults(this);

        new OkHttpClient.Builder()

                .addNetworkInterceptor(new StethoInterceptor())

                .build();

    }

}

接着运行app到手机上。

然后打开chrome,输入网址chrome://inspect

上一篇 下一篇

猜你喜欢

热点阅读