Android Studio – Jdk Sources & Javadoc

Setup Android Studio 2.3 for pojo java library javadoc and sources support.

  1. link jdk javadoc location to ~/android-studio/jre/docs/api
  2. link jdk src.zip to ~/android-studio/jre/src.zip

These files can be copied and or decompressed, as well.
In the jdk.table.xml file, note that zip files are accessed with the “jar:///…….!\ protocol

~/.AndroidStudio2.d/config/options/jdk.table.xml

formatting sucks.
<try a copy here>

<application>
<component name=”ProjectJdkTable”>
<jdk version=”2″>
<name value=”1.8″ />
<type value=”JavaSDK” />
<version value=”java version &quot;1.8.0_112-release&quot;” />
<!– <homePath value=”$USER_HOME$/jre” /> –>
<homePath value=”$USER_HOME$/android-studio/jre” />
<roots>
<annotationsPath>
<root type=”composite”>
<root type=”simple” url=”jar://$APPLICATION_HOME_DIR$/lib/jdkAnnotations.jar!/” />
</root>
</annotationsPath>
<classPath>
<root type=”composite”>
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/charsets.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/cldrdata.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/dnsns.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/jaccess.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/localedata.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/nashorn.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/sunec.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/sunjce_provider.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/sunpkcs11.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/ext/zipfs.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/jce.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/jsse.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/management-agent.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/resources.jar!/” />
<root type=”simple” url=”jar://$USER_HOME$/jre/jre/lib/rt.jar!/” />
</root>
</classPath>
<javadocPath>
<root type=”composite”>
<root type=”simple” url=”file://$USER_HOME$/jre/docs/api” />
</root>
</javadocPath>
<sourcePath>
<root type=”composite”>
<root type=”simple” url=”jar:///home/user/android-studio/jre/src.zip!/” />
<!– <root type=”simple” url=”file://$USER_HOME$/Android/Sdk/sources/android-22″ /> –>
</root>
</sourcePath>
</roots>
<additional />
</jdk>
<jdk version=”2″>
<name value=”Android API 22 Platform” />
<type value=”Android SDK” />
<version value=”java version &quot;1.8.0_112-release&quot;” />
<homePath value=”$USER_HOME$/Android/Sdk” />
<roots>
<annotationsPath>
<root type=”composite”>
<root type=”simple” url=”jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/” />
</root>
</annotationsPath>
<classPath>
<root type=”composite”>
<root type=”simple” url=”jar://$USER_HOME$/Android/Sdk/platforms/android-22/android.jar!/” />
<root type=”simple” url=”file://$USER_HOME$/Android/Sdk/platforms/android-22/data/res” />
</root>
</classPath>
<javadocPath>
<root type=”composite”>
<root type=”simple” url=”http://developer.android.com/reference/&#8221; />
</root>
</javadocPath>
<sourcePath>
<root type=”composite”>
<root type=”simple” url=”file://$USER_HOME$/Android/Sdk/sources/android-22″ />
</root>
</sourcePath>
</roots>
<additional jdk=”1.8″ sdk=”android-22″ />
</jdk>
<jdk version=”2″>
<name value=”Android API 23 Platform” />
<type value=”Android SDK” />
<homePath value=”$USER_HOME$/Android/Sdk” />
<roots>
<annotationsPath>
<root type=”composite”>
<root type=”simple” url=”jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/” />
</root>
</annotationsPath>
<classPath>
<root type=”composite”>
<root type=”simple” url=”jar://$USER_HOME$/Android/Sdk/platforms/android-23/android.jar!/” />
<root type=”simple” url=”file://$USER_HOME$/Android/Sdk/platforms/android-23/data/res” />
</root>
</classPath>
<javadocPath>
<root type=”composite”>
<root type=”simple” url=”http://developer.android.com/reference/&#8221; />
</root>
</javadocPath>
<sourcePath>
<root type=”composite” />
</sourcePath>
</roots>
<additional jdk=”1.8″ sdk=”android-23″ />
</jdk>
<jdk version=”2″>
<name value=”Android API 25 Platform” />
<type value=”Android SDK” />
<homePath value=”$USER_HOME$/Android/Sdk” />
<roots>
<annotationsPath>
<root type=”composite”>
<root type=”simple” url=”jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/” />
</root>
</annotationsPath>
<classPath>
<root type=”composite”>
<root type=”simple” url=”jar://$USER_HOME$/Android/Sdk/platforms/android-25/android.jar!/” />
<root type=”simple” url=”file://$USER_HOME$/Android/Sdk/platforms/android-25/data/res” />
</root>
</classPath>
<javadocPath>
<root type=”composite”>
<root type=”simple” url=”http://developer.android.com/reference/&#8221; />
</root>
</javadocPath>
<sourcePath>
<root type=”composite”>
<root type=”simple” url=”file://$USER_HOME$/Android/Sdk/sources/android-25″ />
</root>
</sourcePath>
</roots>
<additional jdk=”1.8″ sdk=”android-25″ />
</jdk>
</component>
</application>

<!– –>

<!– –>