我在我的项目中使用了Exoplayer的fork,将其作为git子模块包含在内,并与其他模块一起编译:
compile project(':libraries:exoplayer:library')
现在,我尝试链接一个外部SDK,该SDK在其pom文件中对exoplayer具有明确的依赖性:
<dependency>
<groupId>com.google.android.exoplayer</groupId>
<artifactId>exoplayer</artifactId>
<version>r1.4.2</version>
<scope>compile</scope>
</dependency>
我怎样才能告诉gradle使用exoplayer的fork而不是jcenter的fork?
您可以这样忽略传递依赖:
dependencies{
compile('your:external:sdk') {
exclude group: 'com.google.android.exoplayer', module: 'exoplayer'
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句