How to display the documentation for the support libraries inside Android Studio?

前端 未结 2 1686
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 14:55

When I use the command \'Quick Documentation\' in Android Studio in a class that comes from one of the support libraries (e.g. ActionBarActivity), the IDE does not show the

相关标签:
2条回答
  • 2021-01-14 15:19

    If you are not using Gradle, this will be easier for you.

    Go to File -> Project Structure. From there, on the left-hand side, select Libraries. Select the library you want to add source/java-docs to, then click the plus at the bottom and add the source and/or java-doc jars. There's a chance AS will automatically know what's what.

    If you're using Gradle, more than likely in Project Structure, you won't see the Libraries tab, and I'm sorry but I don't know how to help from that point. If you use Gradle, AS detects that and takes away "unnecessary" options. Sorry to send you searching again, but I know there's something called a .properties file for jars that tell the source and java-docs, but I haven't implemented it. If I can find the page that told me that information, I'll update this.

    EDIT: The answer is here. This should help you out.

    0 讨论(0)
  • 2021-01-14 15:40

    When Android Studio has opened the decompiled jar class, click on "Download..." blue link at top right, this will download jar with javadoc and save it in :

    /.ideaLibSources

    rebuild project if necessary, now doc is available. Tested on android studio 2.0 preview 4.

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