模块 | Dependencies |
---|---|
最新版本 |
1、常用的依赖库。
1、在代码中使用引用
在Project的gradle中加入:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
在Module的gradle中加入:
dependencies {
implementation "com.github.like5188:Dependencies:版本号"
}
2、在 gradle 文件中使用引用
在Project的gradle中加入:
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.github.like5188:Dependencies:版本号"
}
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
在Module的gradle中加入:
dependencies {
implementation "com.github.like5188:Dependencies:版本号"
}