Skip to content

Commit

Permalink
接入指引针对Gradle7.0+进行说明
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Jul 17, 2023
1 parent ce11157 commit c8bc005
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
}
```
Expand Down

0 comments on commit c8bc005

Please sign in to comment.