How to install javadoc for Android Compatibility Package?

后端 未结 6 1799
感情败类
感情败类 2020-12-24 09:37

How to generate custom javadoc for android 1.4 compatibility package?

The reference docs are available online (example), but is there some place where I can get a zi

6条回答
  •  难免孤独
    2020-12-24 09:50

    I went through all of these solutions and none of them worked. Here is what I did to get it to work:

    1. Navigate to the following folder: D:\\Android-SDK\android-sdk-windows\extras\android\support\v4

    2. Run the command: javadoc -d docs -sourcepath src\java -subpackages android.support.v4

    3. In your project's libs directory, create a file called android-support-v4.jar.properties

    4. In the properties file, add the following lines (change the path to match yours):

      doc=D:\Program Files\Android-SDK\android-sdk-windows\extras\android\support\v4\docs src=D:\Program Files\Android-SDK\android-sdk-windows\extras\android\support\v4\src

    5. In Eclipse, bring up the properties dialog for the Build, then navigate to Java Build Path and select the Libraries tab.

    6. Expand the support library. In my case the path is: D:\Program Files\Android-SDK\android-sdk-windows\extras\android\support\v4

    7. Select Javadoc location. Click on the Edit button and then select the path to the docs. In my case it was: file:/D:/Program Files/Android-SDK/android-sdk-windows/extras/android/support/v4/docs/

    8. Close everything, including Eclipse and restart. You should now be able to browse docs in your code.

提交回复
热议问题