'Build AAR with dependencies and sub JAR files

How to build AAR file with standard dependencies + JAR files, so when I import it in another project the dependencies will be included?

Currently I am adding the AAR file to lib directory and:

implementation(files('libs/my-lib.aar'))

But the dependencies is missing in runtime.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source