java - java gradle找不到要编译的github存储库

标签 java android android-studio github gradle

嗨,我在android studio的Java Android应用中遇到了gradle设置问题。

我正在尝试编译github存储库https://github.com/MatthewLM/peercoinj

我的代码:

compile 'com.github.matthewlm:peercoinj:0.13.1'



这是输出:

Could not find com.github.matthewlm:peercoinj:0.13.1.



我希望你可以帮助我

最佳答案

版本可能已更改。您可以尝试将该行更改为:

compile 'com.github.matthewlm:peercoinj:+'

请注意,尽管这种方法不是首选,因为它会导致生成不稳定(例如,第三方可能会发布其代码的较新版本,这可能会破坏您的代码中的某些内容)。希望能帮助到你。祝你好运。

关于java - java gradle找不到要编译的github存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51411548/

相关文章:

java - 在java中运行系统进程,这样就不会卡住程序

java - 重复相同的异常堆栈跟踪

android - Gradle 同步失败 : Connection refused: connect after proxy configured

android:将文件保存到特定文件夹以供以后检索

android - 访问 fragment 内部的数据库处理程序

android - 如何在不与其他 View 冲突的情况下在布局中心对齐 textView?

java - 如何从 BackStack 导航到现有的 Fragment?

java - Android 测试框架说明

android - 在 android 中过滤 ListView 时检查了错误的项目

android - CollapsingToolbar - Activity 标题覆盖选项卡