quentin41500 / Java-Library-Issue-Example

Demonstrate the issue between java library module and android application

Home Page:https://code.google.com/p/android/issues/detail?id=211053&thanks=211053&ts=1464106381

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java-Library-Issue-Example

Resolved

Demonstrate the issue with java library module and android application

Steps to reproduce

  1. Create a sample application
  2. Use classpath 'com.android.tools.build:gradle:2.2.0-alpha1'
  3. Add a java library module to your application (called api for example)
  4. Create a random class (MyClass)
  5. Add the library to your sample app (compile project(:api'))
  6. Try to access MyClass from sample app
  7. Observe: MyClass is not visible

Expected:

MyClass should be accessible, as well as anything public from the java library.

About

Demonstrate the issue between java library module and android application

https://code.google.com/p/android/issues/detail?id=211053&thanks=211053&ts=1464106381


Languages

Language:Java 100.0%