I am working to build an SDK that can be used in other application.
My project structure is as follows:
ProjectFolder
|
+--AndroidLibs
| |
| +--UI (android library - AAR)
| |
| +--Protocol (android library - AAR)
| |
| +--infra (android library - AAR)
|
+--SDK(depends on UI, Protocol and Infra)
|
+--APP(depends on SDK)
As you can see, we have 3 different libraries that we work on, each one is a module in our system (infra, ui and protocol). Each one of them is creating an AAR.
Our SDK is a wrapper with some API calls to the lower layers.
We want to create one AAR that depends on all other AARs, but from some reason when we tried to run it, it says that he can't find the source code for some classes.
I found some questions related to this issue, but they didn't worked.
Also tried to work with transitive
dependencies, but the bottom line is the same - can't find the source code.
- android-studio-how-to-package-single-aar-from-multiple-library-projects: One answer that says there no solution for that (Google employee).
- create-an-aar-with-multiple-aars-jars: use the
transitive
dependencies. - Create Mojo for creating AAR with all "aar" dependencies
Is there anything else we can do?