【问题标题】:how can I use this library in android studio我如何在 android studio 中使用这个库
【发布时间】:2018-08-04 09:45:12
【问题描述】:

我不知道如何将此库添加到我的项目中。

https://github.com/alamkanak/Android-Week-View

谢谢。

编辑:谁能解释一下如何将示例应用程序作为 android 项目打开?

https://github.com/alamkanak/Android-Week-View/tree/develop/sample

【问题讨论】:

标签: android android-studio github


【解决方案1】:

在你的文件 gradle 中插入依赖项粘贴这个compile 'com.github.alamkanak:android-week-view:1.2.6'

例子:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.android.support:design:26.+'

compile 'com.github.alamkanak:android-week-view:1.2.6'

}

然后点击立即同步。

【讨论】:

    【解决方案2】:

    在模块 build.gradle 文件中添加这一行

    编译“com.github.alamkanak:android-week-view:1.2.6

    现在同步 gradle 文件和库将添加到项目中,现在您可以按照 github 上的说明进行日历自定义和设置

    【讨论】:

      【解决方案3】:

      在你的 build.gradle(app:module) 的依赖块中添加这一行:

      implementation 'com.github.alamkanak:android-week-view:1.2.6'
      

      并根据您发布的链接按照说明进行操作。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-10-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-11
        • 2022-01-12
        • 2013-12-21
        • 1970-01-01
        相关资源
        最近更新 更多