【问题标题】:Adding Github repo to Android Studio Dependencies Using Maven使用 Maven 将 Github 存储库添加到 Android Studio 依赖项
【发布时间】:2017-10-18 23:10:15
【问题描述】:

我目前正在尝试将 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 文件,其中列出了我可以毫无问题地添加的其他依赖项。有关如何包含此特定库的任何建议?

【问题讨论】:

标签: android maven github


【解决方案1】:

我按照@Randyka Yudhistira 的建议使用了this repo,效果很好!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-14
    • 2014-03-28
    • 2015-04-13
    • 1970-01-01
    • 2021-03-22
    • 2018-11-14
    • 2011-05-30
    • 2017-03-29
    相关资源
    最近更新 更多