Android Studio: How to attach javadoc

前端 未结 10 1888
一向
一向 2020-12-04 09:47

It might be very trivial question, But I couldn\'t find any option to attach javadoc/source with local jar dependencies (in libs folder) in android project. I can\'t believe

10条回答
  •  抹茶落季
    2020-12-04 10:10

    I've found & tested a way in which we can add the javadocs without loosing them after a gradle sync.

    1. Right click in Project panel > External libraries > lib-name
    2. Click Library properties
    3. Click specify documentation URL
    4. And specify an URL. For my machine it was file:///opt/android-sdk/extras/google/google_play_services/docs/reference
    5. The result was:
    6. And after a project sync I could browse the javadoc of the google play services

    Note:

    This placed the same JAVADOC entry in the xml identified by Jason but doesn't disappear after doing a sync with gradle

提交回复
热议问题