I am having an issue with retrieving dependencies with gradle for one of my android library modules.
I have 3 modules in my android project:
android library module 1 (mylibrary1)
android library module 2 (mylibrary2)
The application module has dependencies on both library projects:
implementation project(':mylibrary1') implementation project(':mylibrary2')
and mylibrary2 has a dependency on mylibrary1:
When I run the gradle dependencies command for mylibrary2, the archives configuration fails to retrieve the transient dependencies of the dependent mylibrary1
so, the command:
gradle mylibrary2:dependencies --configuration archives
project :mylibrary1 FAILED
For the application module, everything works fine. And all other configurations for the mylibrary2 project are successful.
I was able to reproduce this in a brand new project setup, which doesn’t have anything special. Just created the 3 modules above and dependencies between them, so it’s not related to any custom implementation.
Does anyone know why this is happening? And also, what I can do to fix it?