Hello, I have an interface Lib2 in library module L2 that extends interface Lib1 from another library module L1. If I use Lib2 from my app class, I get this error when I compile the app. (No visibility keywords such as private are used.)
Copy code
error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.test.lib2.Lib2, unresolved supertypes: com.test.lib1.Lib1
If the App class is written in Java, I do not see the error. Any idea why the package boundary/visibility is an issue only for Kotlin and not for Java? I can use
api
to get around this but my question is why Kotlin behaves diffierent?