我正在尝试从 Github 的 PhotoView 项目中获取“dev”分支而不是“master”分支: https://github.com/chrisbanes/PhotoView/tree/dev
但默认情况下,依赖项获得“master”分支。
dependencies {
compile 'com.github.chrisbanes.photoview:library:1.2.3'
}
我应该如何更改此依赖关系以获得“dev”分支而不是“master”?
最佳答案
使用这个:
compile 'com.github.chrisbanes.photoview:library:dev-SNAPSHOT'
关于git - Gradle:将对github项目的依赖添加到dev分支而不是master,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23748354/