Dawish / GoogleArchitectureDemo

:fire: 基于谷歌最新MVVM实现组件化架构,使用dataBinding、lifecycle、retrofit2、rxjava2、okhttp、fresco、ARouter。
733 stars 189 forks source link

编译错误 #4

Open he4330937 opened 6 years ago

he4330937 commented 6 years ago

编译时发现

请问如何解决, Thanks

huangxunlei commented 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()

}` 希望能帮到你,我是这样解决了的

he4330937 commented 6 years ago

非常感谢,根据你的提示,终于解决问题.. 最终代码为

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.