添加项目从GitHub到的IntelliJ

问题描述 投票:0回答:1

我知道这不可能是很难做到的,但我无法将项目从GitHub这里找到:https://github.com/gabrielemariotti/cardslib到我的项目。我已经改变了我的build.gradle看起来像这样:

dependencies {
    compile project(':libraries:cardslib:library')
}

我知道一定有模块中为了做到这一点的设置里面的一些设置。是否GitHub的项目需要添加一个模块?或是否需要添加作为库?我需要一些帮助,这一点,我不知道正确的方式来做到这一点。

java android github intellij-idea
1个回答
0
投票

只需将其添加为一个依赖然后在您的build.gradle。你会找到代码中添加it heregradle dependencies here的描述。

dependencies {
     compile 'com.github.gabrielemariotti.cards:library:0.8.0'
}
© www.soinside.com 2019 - 2024. All rights reserved.