I have a project with the following structure.
+-MyApplication
+-MyLibrayOne
+-MyLibrayTwo
MyApplication
is my main application whereas MyLibrayOne
and MyLibrayTwo
are two libraries imported into project. MyApplication
uses some classes of MyLibrayOne
and MyLibrayOne
uses some classes of MyLibrayTwo
.
In the .gradle
file of MyLibrayOne
I have used - compile project(':MyLibrayTwo')
. Everything works fine. But if I replace compile
with implementation
it can not import the classes from MyLibrayTwo
. It gives error: cannot find symbol class XXXX
error.