Open george-vlahakis opened 3 years ago
I think this classes.jar which is in another jar file, so it's merged.
No it's another module in the project. We have 4 modules in the project, each producting an aar, and the last we need to combine all in one fat-aar. The classes in the classes.jar is from the 2nd module.
Can you provide a simple demo? I can't repro it locally. Thank you.
I'm encountering this issue too. The inner classes.jar (so as the sibling AndroidManifest.xml, etc.) is from an aar library file. That is:
I've created a demo project and found that it is AGP's fault. Using AGP 3.5.0, the module2 above can be built, producing the strange aar file. If upgrading AGP to 4.+, AGP will compain that it is not allowed for a library module to depend on an aar file.
After building the fat-aar and inspecting it's contents it turns out that the aar contains two classes.jar files, one in the other. I do not think this is normal and it causes problems trying to access classes from the 2nd-level classes.jar file.