I have an APP and LIB1 , which has a dependency on LIB2 . If I connect LIB1 to the APP as a module, then everything is OK. If LIB1 connect LIB1 to the APP via the implementation files , then when calling the method from LIB1 swear java.lang.ClassNotFoundException: Didn't find class "com.XXX.XXX.XLog" on path: DexPathList . XLog is a class in LIB2 . Why is this happening?

  • You would show how they are spelled out for you, otherwise it’s not very clear - maybe you are confusing LIB1 , LIB2 in the question? And what do you really want - why are you not satisfied with the dependence of the type "module"? And yes, the implementation dependency is visible only to this module, but not to its consumer. In order for APP see LIB2 “through” LIB1 you need to LIB1 LIB2 as api ... in LIB1 api ... (instead of implementation ... ) - woesss
  • I correctly described everything. From APP I do not need access to LIB2. The problem was solved when I connected LIB2 to the APP. - Andrew Efremov

0