Stetho调试工具

GitHub - facebook/stetho: Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.

作用

利用浏览器来调试安卓网络及数据库

使用说明

1.添加 stetho 主依赖

   dependencies { 
     compile 'com.facebook.stetho:stetho:1.4.1' 
   }

2.初始化

public class MyApplication extends Application {
   public void onCreate() {
     super.onCreate();
     Stetho.initializeWithDefaults(this);
   }
 }

3.调试

打开Chrome输入chrome://inspect/#devices
Stetho调试工具_第1张图片
Paste_Image.png

参考:
1.http://www.jianshu.com/p/03da9f91f41f

你可能感兴趣的:(Stetho调试工具)