如何将特定的github PR编译到我的Android Studio项目中-等级错误:无法解决 [英] how to compile a specific github PR into my Android studio project - grade Error: Failed to resolve
问题描述
我对Android Studio来说还很陌生,请多多包涵.
I am pretty new to Android Studio, please bear with me.
我试图将这个特定的拉取请求添加到我的项目中,因为我也需要动画持续时间,并且原始所有者尚未合并该请求: https://github.com/81813780/AVLoadingIndicatorView/pull/74
I am trying to add this specific pull request into my project because I need the animation duration too and the original owner hasn't merged the request: https://github.com/81813780/AVLoadingIndicatorView/pull/74
我继续阅读:如何在Gradle中编译分叉库?
我可以为此使用jitpack
.所以我加了:
that I can use jitpack
for this. So I added:
maven { url "https://jitpack.io" }
进入我的Project gradle文件和
into my Project gradle file and
尝试
compile 'com.github.kizitonwose:AVLoadingIndicatorView:2.1.3'
进入我的模块gradle文件.但是当我同步gradle时,我得到了错误:
into my module gradle file. But when I sync gradle, I get error:
Failed to resolve: com.github.kizitonwose:AVLoadingIndicatorView:2.1.3
我在做什么错了?
推荐答案
如果您没有任何Github帐户,请创建一个帐户,现在分叉项目 如何在Gradle中编译派生库?.
If you are not having any Github account, please create one account, now fork the project https://github.com/81813780/AVLoadingIndicatorView ,then pull down the project and open it up in Android Studio and make the changes in the code then push back the project and finally create a release then make use of How to compile forked library in Gradle?.
希望对您有帮助.
这篇关于如何将特定的github PR编译到我的Android Studio项目中-等级错误:无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!