6

我在我的 DemoApp 项目中使用 android cuckoo.aar 本地 android 库。

这个 cuckoo 库还通过 Gradle 依赖项使用了许多其他库,例如(retrofit、recyclerview、rx-android、rx-java)。

当我在 DemoApp 中导入这个 cuckoo 库时,我需要在我的 demoApp 中添加库中使用的所有依赖项。

有一种解决方案是在 gradle 中设置transitive = true。但这对我没有帮助。

有人可以帮助我实现这一目标的正确方法。

4

1 回答 1

4

无法使用本地 aar 文件下载传递依赖项。

此文件不包含pom.xml引用链接到此库的所有依赖项的 a,因此添加transitive = true将什么也不做。

如果 Cuckoo 库未托管在 Maven 存储库中,恐怕您将不得不在build.gradle.

于 2018-03-03T09:38:17.577 回答