无法添加自定义日历包

时间:2016-07-20 05:23:49

标签: android maven calendar repository

当我添加compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'时 在我的gradle.build中 它给出了一个错误:Error:(23, 13) Failed to resolve: com.github.npanigrahy:Custom-Calendar-View:v1.0

提前谢谢

2 个答案:

答案 0 :(得分:0)

首先,您应该检查您的android-studio设置,您是否设置了 http代理

其次,根据https://github.com/npanigrahy/Custom-Calendar-View

中的教程

第三,您是否要将依赖项下载到您的本地匹配项中,然后依赖于您的项目?

答案 1 :(得分:0)

在build.gradle(Project:calender)文件中使用它

allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
    }

这在build.gradle(module:app)

dependencies {
    compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
}
相关问题