From c8bc005e8a2aa77c1d90684ade6f6592199d1091 Mon Sep 17 00:00:00 2001 From: gzu-liyujiang <1032694760@qq.com> Date: Mon, 17 Jul 2023 18:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E6=8C=87=E5=BC=95=E9=92=88?= =?UTF-8?q?=E5=AF=B9Gradle7.0+=E8=BF=9B=E8=A1=8C=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4fac6b..22d99bb 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,21 @@ requests 贡献您的代码,大家共同学习【[AndroidPicker 交流群 6042 #### 在项目根目录下的`build.gradle`中 +如果你的项目 Gradle 配置是在 7.0 以下,需要在 build.gradle 文件中加入: ```groovy allprojects { repositories { - maven { url 'https://www.jitpack.io' } + // JitPack 远程仓库:https://jitpack.io + maven { url 'https://jitpack.io' } + } +} +``` +如果你的 Gradle 配置是 7.0 及以上,则需要在 settings.gradle 文件中加入: +```groovy +dependencyResolutionManagement { + repositories { + // JitPack 远程仓库:https://jitpack.io + maven { url 'https://jitpack.io' } } } ```