From e8a40cd84595a9028af78e963b6238817bdc154e Mon Sep 17 00:00:00 2001 From: drake Date: Fri, 11 Aug 2023 23:16:12 +0800 Subject: [PATCH] doc: README --- README.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 1243a2058..a091e8488 100644 --- a/README.md +++ b/README.md @@ -83,20 +83,7 @@ Welcome to international translation of this project's documents/notes, thank yo ## 安装 -添加远程仓库根据创建项目的 Android Studio 版本有所不同 - -Android Studio Arctic Fox以下创建的项目 在项目根目录的 build.gradle 添加仓库 - -```groovy -allprojects { - repositories { - // ... - maven { url 'https://jitpack.io' } - } -} -``` - -Android Studio Arctic Fox以上创建的项目 在项目根目录的 settings.gradle 添加仓库 +Project 的 settings.gradle 添加仓库 ```kotlin dependencyResolutionManagement { @@ -107,15 +94,15 @@ dependencyResolutionManagement { } ``` -然后在 module 的 build.gradle 添加依赖框架 +Module 的 build.gradle 添加依赖框架 ```groovy implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0" // 协程(版本自定) implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0' -implementation 'com.squareup.okhttp3:okhttp:4.10.0' // 要求OkHttp4以上 +implementation 'com.squareup.okhttp3:okhttp:4.11.0' // 要求OkHttp4以上 implementation 'com.github.liangjingkanji:Net:3.6.0' ``` -如果你是在 Android 5 (API level 21)以下开发, 要求使用OkHttp3.x请使用: [Net-okhttp3](https://github.com/liangjingkanji/Net-okhttp3) +如果在 Android 5 (API level 21)以下开发, 请使用 [Net-okhttp3](https://github.com/liangjingkanji/Net-okhttp3)
## Contribute