I have two modules, module1
(android library) and module2
(Java library).
module1
has module2
as implementation
dependency.
module2
has dependency d3
which is org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
as implementation
dependency.
However, I can import symbols from d3
in a class in module1
, without Android Studio complaining. (This would imply that d3
is in the classpath of module1
through some other library)
However, on compilation, build for module1
fails with error: package org.apache.oltu.oauth2.common does not exist
!?
How is it able to import all symbols from that package when it is not able to resolve it in compile time?