Android/Java Javadoc missing after updating Android SDK

后端 未结 5 1463
一生所求
一生所求 2021-02-19 21:05

After i recently installed the new Android SDK stuff, I no longer can view the Javadoc while editing my project\'s code. I get this message: Note: This element has no att

相关标签:
5条回答
  • 2021-02-19 21:17

    One more suggestion: With my installtion, changing the path did not work! Validating was ok, but after closing the project properties, it switched back to the old wrong path. (After installing the Android SDK, I moved it to another location; the wrong javadoc path was to that old location before moving. This probably caused my problem.)

    My solution now was: Opening the Eclipse preferences, go to Android, and there change the SDK Location path by "Browse" to the new location. I did type in the new location, but after browsing to it, the d:... changed to D:... -- and magically, after this, I could now change the javadoc path in the project settings and it remembers my choice. Even building new Projects now works like expected with the correct javadoc path right from the beginning.

    0 讨论(0)
  • 2021-02-19 21:22
    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!
    
    0 讨论(0)
  • 2021-02-19 21:23

    My Problem was that I couldn't see javadoc also for other libraries though path's validating was ok.

    Unfortunately solution of cjserio didn't help. I didn't want take binnyb's solution.

    According to answer from Jockel I looked at Android SDK location and saw that the path was "C:\Progra~1\Android\android-sdk" instead of "C:\Program Files\Android\android-sdk".

    Though it's correct way but after relocation I'v got "C:\Program Files\Android\android-sdk" as the location path and could see all javadocs again also after restart of Eclipse

    UPD But then I get the next problem. I couldn't start simulator anymore because plugin couldn't understand path anymore. This issue was caused by space in "Program Files".

    But i've a solution for this problem as well

    Working fine for me

    0 讨论(0)
  • 2021-02-19 21:29

    Deleting .metadata is not a good solution because you'll lose all of your settings. I poked at this a bit and was able to figure it out. Full writeup is here:

    http://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html

    0 讨论(0)
  • 2021-02-19 21:29

    I figured out how to fix this problem. All i had to do was delete the .metadata folder in my workspace, and restart eclipse. note: this will clear all your eclipse preferences, settings, etc. your workspace projects will need to be added again.

    also consider the following link as it seems to be very helpful for most people viewing this: http://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html

    0 讨论(0)
提交回复
热议问题