Open he4330937 opened 6 years ago
在version.gradle 代码中 addRepos位置增加:
handler.jcenter() { url "http://jcenter.bintray.com/" }
修改后代码:
`def addRepos(RepositoryHandler handler) {
handler.maven {
url 'https://maven.google.com/'
name 'Google'
}
handler.jcenter() {
url "http://jcenter.bintray.com/"
}
handler.jcenter()
handler.maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
handler.maven { url 'https://oss.jfrog.org/libs-snapshot' }
handler.maven { url 'https://jitpack.io' }
handler.mavenCentral()
}` 希望能帮到你,我是这样解决了的
非常感谢,根据你的提示,终于解决问题.. 最终代码为
def addRepos(RepositoryHandler handler) {
handler.maven {
url 'https://maven.google.com/'
name 'Google'
}
handler.jcenter {
url "http://jcenter.bintray.com/"
}
// handler.jcenter()
handler.maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
handler.maven { url 'https://oss.jfrog.org/libs-snapshot' }
handler.maven { url 'https://jitpack.io' }
handler.mavenCentral()
}
Thanks.
编译时发现
请问如何解决, Thanks