Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
e943070006
1 changed files with 12 additions and 1 deletions
  1. 12 1
      README.md

+ 12 - 1
README.md

@@ -1,3 +1,14 @@
 # leakcanary
 
-A memory leak detection library for Android.
+内存泄漏分析工具,比较有意思是,引入这个依赖,安装包后会在桌面创建一个图标。
+
+
+## Usage
+
+1、build.gradle 引入
+```
+  debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
+  releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
+  // Optional, if you use support library fragments:
+  debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.1'
+```