【问题标题】:adding a library in android studio project? [duplicate]在 android studio 项目中添加库? [复制]
【发布时间】:2016-10-31 09:20:50
【问题描述】:

我找不到将此库添加到我的 Android Studio 项目的方法

我需要知道应该在哪里提取这个文件

https://github.com/SundeepK/CompactCalendarView

【问题讨论】:

    标签: android android-gradle-plugin android-studio-2.0


    【解决方案1】:

    只需添加

    compile 'com.github.sundeepk:compact-calendar-view:1.8.4'

    在你的

    build.gradle(模块:app)

    在依赖部分

    【讨论】:

    • 我应该把下载的文件放在哪里?
    【解决方案2】:

    添加这一行

    compile 'com.github.sundeepk:compact-calendar-view:1.8.4'
    

    构建.gradle (Module:app) 使依赖部分看起来像

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:23.3.0'
        compile 'com.github.sundeepk:compact-calendar-view:1.8.4'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-06
      • 2013-07-04
      • 2017-01-17
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多