Alex Rivera | Logout

How can I enable javadoc for the Android support library?

Asked 2012-09-27T19:07:05.483
42

When using the Android support library for compatibility and try to view the javadoc for, say, FragmentTransaction, I get the following error because there is no associated javadoc file:

android.support.v4.app.FragmentTransaction

Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

The support library is added under the Android Dependencies item in the project properties, and shows Javadoc location: (None) - non-modifiable as shown below. Is there any workaround for this?

enter image description here

Edit
Report

1 Answer

6

Edited: Refer the following post :

How to attach javadoc or sources to jars in libs folder?

Added:

Under \android-sdk\extras\android\support\v4 directory of your Android SDK installation you will find the sources for android-support-v4.jar (i.e. the src directory) and you can create a jar file of the same using jar command.

Hope it helps :)

Added:

Check this post https://android-review.googlesource.com/#/c/35702/

according to this

Create a file named android-support-v4.jar.properties in the libs directory of your project and add following line into it.

src: <relative or absolute path to the source folder (or archive).>

I tried this solution and it worked for me. Enjoy :)

answered 2012-09-27T19:17:04.400

Your Answer