Why is my Android SDK source not complete?

I recently discovered that my Android SDK source is not complete. I downloaded the Android SDK API 16 ONLY from the SDK Manager. When I want to generate javadoc from source code, it warns me that some classes were not found. I read the website below, but I am confused about whether the higher-level API contains lower-level APIs. Is setting the highest API enough? Or do some Android SDK sources depend on the source of the JDK? Many thanks.

API Help for the API API

Part of the Javadoc warnings:

./java/lang/String.java: 31: warning: package libcore.util does not exist

import libcore.util.EmptyArray;

+6
source share
1 answer

From what I understand, the SDK will only include sources from the framework / base. Since libcore is not here (it is in the root directory of the source tree), you get this error.

+2
source

Source: https://habr.com/ru/post/920557/


All Articles