注意如果没有作用,尝试使用VPN
项目官方的详细说明
一.在build中编写 SliderLayout的dependence依赖
- dependencies {
- compile 'com.squareup.okhttp:okhttp:2.5.0'
- compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
- compile 'com.facebook.stetho:stetho:1.3.1'
- compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
- }
二.创建application 并在AndroidManifest.xml修改android:name=”.MyApplication”
- public class MyApplication extends Application {
- @Override
- public void onCreate() {
- super.onCreate();
- //初始化查看sqlite的东西
- Stetho.initializeWithDefaults(this);
- new OkHttpClient.Builder()
- .addNetworkInterceptor(new StethoInterceptor())
- .build();
- }
- }
三.编译app,安装至手机并运行该app。
四.打开Chrome浏览器,输入网址 chrome://inspect
五.检测到手机上运行的app,点击inspect链接,进入手机信息管理页面:
转自 https://blog.youkuaiyun.com/p4885056000/article/details/53120959