【仙女】Android開發工具之Http請求打印HttpCanary

HttpCanary

AndroidCrash日誌打印輸出java

Download
GitHub issues
GitHub forks
GitHub stars
GitHub license


github傳送門android

效果展現

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
    }
複製代碼
相關文章
相關標籤/搜索