How to install javadoc for Android Compatibility Package?

后端 未结 6 1760
感情败类
感情败类 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:58

    Problem: If the android-support-v4.jar is in the /libs folder (as the ADT 17+ require) the javadoc is unavailable.


    Edit: I have workarounded the problem by linking the offline version of the android javadoc to the android-support-v4.jar. As far as I know it is still not possible to link the online version (http://developer.android.com/reference). Steps:

    1. Download the Documentation for Android SDK from the SDK Manager. You can find it under the latest Android version (4.1)
    2. Link the javadoc folder to your project's folder, in Windows open a console and type: MKLINK /J {PROJECT_PATH}\android_docs {SDK_PATH}\docs\reference
    3. Create the file libs/android-support-v4.jar.properties with this content:

      src=android-support-v4.jar
      doc=../android_docs
      
    4. Close the project and reopen it. Clean if necessary.

    5. The javadoc is linked. Check it by going to any Support library class, like android.support.v4.app.FragmentActivity

    Thanks to this answer https://stackoverflow.com/a/11579339/933261

提交回复
热议问题