I am working on creating an SDK that can be used in another 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 are working on, each of which is a module in our system (infra, ui and protocol). Each of them creates an AAR.
Our SDK is a shell with some API calls for lower layers.
We want to create one AAR that depends on all the other AARs, but for some reason, when we tried to run it, it says that it cannot find the source code for some classes.
I found several questions related to this problem, but they did not work. I also tried to work with transitive dependencies, but the bottom line is the same - I cannot find the source code.
Is there anything else we can do?
android module android-gradle gradle aar
Ofir A.
source share