Why my Android SDK source is not complete?

android, java, javadoc

Solution

From what I understand, SDK will include only sources from frameworks/base. Since libcore is not here (it is at the root of the source tree), you are getting this error.

Problem

Recently I found my Android SDK source is not complete. I have downloaded the Android SDK API 16 ONLY from SDK Manager. When I want to generate the javadoc from source, it warns me that some classes are not found. I have read the website below, but I get confused whether the higher level API contains the lower level APIs. Is it enough to install the highest API only ? Or do some of the Android SDK source depend on the JDK source ? Thanks a lot. Android API leve help A piece of Javadoc warnings : ./java/lang/String.java:31: warning: package libcore.util not exist import libcore.util.EmptyArray;

Original source