How to set transitive = true for local .aar library?

I am using android cuckoo.aar local android library in my DemoApp project.

This cuckoo library also uses many other libraries, for example (modify, recyclerview, rx-android, rx-java) via Gradle dependencies.

When I import this cuckoo library into DemoApp, I need to add all these dependencies to my demoApp, which are used in the library.

There is one solution - make transitive = true in gradle. But that did not help me.

Can someone help me in the right direction to achieve this.

+5
source share
1 answer

Unable to load transitive dependencies with local aar file.

This file does not contain pom.xml , which refers to all the dependencies associated with this library, so adding transitive = true do nothing.

If the Cuckoo library is not hosted in the Maven repository, I am afraid that you will need to load them manually in build.gradle .

+2
source

Source: https://habr.com/ru/post/1275681/


All Articles