Demonstrate the issue with java library module and android application
- Create a sample application
- Use classpath 'com.android.tools.build:gradle:2.2.0-alpha1'
- Add a java library module to your application (called
api
for example) - Create a random class (MyClass)
- Add the library to your sample app (compile project(:api'))
- Try to access MyClass from sample app
- Observe: MyClass is not visible
MyClass should be accessible, as well as anything public from the java library.