# HttpCanary **Repository Path**: ZL007/HttpCanary ## Basic Information - **Project Name**: HttpCanary - **Description**: 【Android】 Android开发工具之http请求日志打印 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 3 - **Created**: 2020-03-27 - **Last Updated**: 2024-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
## HttpCanary **`Android`网络请求日志打印输出** [![Download](https://api.bintray.com/packages/guxiaonian/httpcanary/httpcanary/images/download.svg) ](https://bintray.com/guxiaonian/httpcanary/httpcanary/_latestVersion) [![GitHub issues](https://img.shields.io/github/issues/guxiaonian/HttpCanary.svg)](https://github.com/guxiaonian/HttpCanary/issues) [![GitHub forks](https://img.shields.io/github/forks/guxiaonian/HttpCanary.svg)](https://github.com/guxiaonian/HttpCanary/network) [![GitHub stars](https://img.shields.io/github/stars/guxiaonian/HttpCanary.svg)](https://github.com/guxiaonian/HttpCanary/stargazers) [![GitHub license](https://img.shields.io/github/license/guxiaonian/HttpCanary.svg)](http://www.apache.org/licenses/LICENSE-2.0)

# 效果展示 ![http_logo](./img/img1.png)![http_logo](./img/img2.png) # 依赖 ```gradle debugImplementation 'fairy.easy.httpcanary:httpcanary:{latestVersion}' releaseImplementation 'fairy.easy.httpcanary:httpcanary-no-op:{latestVersion}' //androidX使用 //debugImplementation 'fairy.easy.httpcanary:httpcanary-androidx:{latestVersion}' ``` # 调用方式 ```java public class App extends Application { @Override public void onCreate() { super.onCreate(); HttpCanary.install(this); } } ``` # 注意事项 1. targetSdkVersion设置为28以下 2. 添加1.8版本 ```gradle compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } ```