阅读 144

【仙女】Android开发工具之Http请求打印HttpCanary

HttpCanary

AndroidCrash日志打印输出

Download
GitHub issues
GitHub forks
GitHub stars
GitHub license


github传送门

效果展示

http_logo
http_logo

依赖

debugImplementation  'fairy.easy.httpcanary:httpcanary:{latestVersion}'
releaseImplementation  'fairy.easy.httpcanary:httpcanary-no-op:{latestVersion}'
//androidX使用
//debugImplementation  'fairy.easy.httpcanary:httpcanary-androidx:{latestVersion}'

复制代码

调用方式

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        HttpCanary.install(this);
    }
}

复制代码

注意事项

  1. targetSdkVersion设置为28以下
  2. 添加1.8版本
 compileOptions {
        targetCompatibility 1.8
        sourceCompatibility 1.8
    }
复制代码