Browse Source

修订文档

drake 3 years ago
parent
commit
d79557f958
1 changed files with 15 additions and 2 deletions
  1. 15 2
      README.md

+ 15 - 2
README.md

@@ -68,7 +68,9 @@ Net 3.x 版本使用OkHttp+协程实现, 可指定其OkHttp版本
 
 ## 安装
 
-在项目根目录的 build.gradle 添加仓库
+添加远程仓库根据创建项目的 Android Studio 版本有所不同
+
+Android Studio Arctic Fox以下创建的项目 在项目根目录的 build.gradle 添加仓库
 
 ```groovy
 allprojects {
@@ -79,7 +81,18 @@ allprojects {
 }
 ```
 
-在 module 的 build.gradle 添加依赖
+Android Studio Arctic Fox以上创建的项目 在项目根目录的 settings.gradle 添加仓库
+
+```kotlin
+dependencyResolutionManagement {
+    repositories {
+        // ...
+        maven { url 'https://jitpack.io' }
+    }
+}
+```
+
+然后在 module 的 build.gradle 添加依赖框架
 
 ```groovy
 // 协程库(版本可自定)