I can't see Android SDK javadoc in Eclipse

后端 未结 2 424
南笙
南笙 2020-12-17 00:24

I am developing for Android in Eclipse Helios. I\'m using the latest ADT plugin 8.0.1. Previously, I could see method javadoc description, when moving my mouse over a method

2条回答
  •  不知归路
    2020-12-17 01:02

    1. In eclipse, right click on your Android project and select Properties
    2. On the menu on the left, select "Java Build Path"
    3. On the right hand side, select the "tab" labelled "Libraries".
    4. Here you should see the Android SDK that you're targeting. For example: "Android 2.2".
    5. Click on the arrow to the left of the Android SDK to expand the sublevels.
    6. Find "Android.jar" and click on the arrow to the left of that one as well to expand it.
    7. You'll see a setting called "Javadoc location". Select that and then click on the "Edit" button.
    8. At the top, RESELECT the path to your javadocs. This is usually "path_to_android_sdk/android-sdk-mac_86/docs/reference/". I say RESELECT because even if it's right, you should browse and do it over anyway.
    9. Click on "validate". You should be all set now!

    As it is told in this article http://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html Thanks to Chris

    For some reason it is adding an static windows OS path starting with D:\... This also correct all SDK targets.

提交回复
热议问题