Adnroid 《如何设置 gradle》
在新版的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'
}
本文来自博客园,作者:一个小笨蛋,转载请注明原文链接:https://www.cnblogs.com/paylove/p/18036718
                    
                
                
            
        
浙公网安备 33010602011771号