【问题标题】:Cant add a custom calender package无法添加自定义日历包
【发布时间】:2016-07-20 05:23:48
【问题描述】:

当我添加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

提前致谢

【问题讨论】:

  • jitpack.io 依赖添加了吗?
  • 是的,我已经添加了它们
  • 能发一下logcat吗
  • 我在我的项目中添加了这个包,没有问题。
  • 你能不能给我一步一步的添加包的过程,因为我在找build.gradle的时候,有2个同名但内容不同的文件。

标签: android maven calendar repository


【解决方案1】:

在 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'
}

【讨论】:

    【解决方案2】:

    首先,你应该检查你的android-studio设置,你设置了http代理吗?

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

    第三,要不要把依赖下载到你的本地matchine然后依赖到你的项目中?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多