Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

This cuckoo library also using many other libraries e.g( retrofit,recyclerview, rx-android, rx-java) through Gradle dependencies.

When I am importing this cuckoo library in DemoApp then I need to add all those dependencies in my demoApp that are used in library.

There is one solution is to make transitive = true in gradle. But it didn't help me.

Can someone help me right way to achieve this.

like image 867
Nivrutti Pawar Avatar asked Mar 03 '18 09:03

Nivrutti Pawar


1 Answers

It is not possible to download transitive dependencies with a local aar file.

This file does not contains a pom.xml which reference all dependencies linked to this library, so adding transitive = true will do simply nothing.

If Cuckoo library is not hosted in a Maven repository, I'm afraid you will be obliged to load them manually in your build.gradle.

like image 79
Bibu Avatar answered Oct 11 '22 18:10

Bibu