使用Maven将Github repo添加到Android Studio依赖项

时间:2017-05-19 00:15:29

标签: android maven github

我目前正在尝试将this github存储库包含到我的android studio项目中。我尝试按照this问题中的说明进行操作,但无济于事。

我已将行maven { url "https://jitpack.io" }添加到我的项目build.gradle以及此行compile 'com.github.karussell:snacktory'添加到我的模块build.gradle文件中,但我收到了无法解决的错误。在我之前链接的问题中,它表示要按照这种格式添加库compile 'com.github.User:Repo:Tag',但我不确定它应该是tag部分。

github repo有一个pom.xml文件,列出了我能够无问题地添加的其他依赖项。有关如何包含此特定库的任何建议吗?

1 个答案:

答案 0 :(得分:0)

我按照@Randyka Yudhistira的建议使用了this回购,它运作得很好!