在新版的Android中设置 https://jitpack.io
由原来的
原来在build.gradle中配置的
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
改到了settings.gradle中
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
在gradle 添加依赖
dependencies {
implementation 'com.github.User:Repo:Tag'
}
标签:设置,io,gradle,maven,Adnroid,https,jitpack
From: https://www.cnblogs.com/paylove/p/18036718