简体   繁体   English

如何在Android Studio中查看库的JavaDoc

[英]How to view JavaDoc of library in Android Studio

We have an Android library project that we use in a couple Android app projects. 我们有一个Android库项目,可在几个Android应用程序项目中使用。 When developing the Android app in Android Studio, if I hover over classes or methods defined in the library, the documentation popup has the package and signature, but no JavaDoc content. 在Android Studio中开发Android应用程序时,如果将鼠标悬停在库中定义的类或方法上,则文档弹出窗口将包含程序包和签名,但没有JavaDoc内容。

The library is not in the same project as the application. 该库与应用程序不在同一个项目中。 It is built separately and uploaded to a private artifact repository (I think it's Nexus) and then referenced as a gradle dependency. 它是单独构建的,并上传到私有工件存储库(我认为是Nexus),然后作为gradle依赖项引用。

How do I get Android Studio to show the library's JavaDoc comments when viewing the class or method from the app project? 从应用程序项目查看类或方法时,如何让Android Studio显示库的JavaDoc注释?

The AARLinkSources plugin may be able to solve this for you. AARLinkSources插件可以为您解决此问题。 I haven't used it myself, but it is recommended by a Stackoverflow user as an answer to a similar question . 我自己没有使用过它,但是Stackoverflow用户建议使用它作为类似问题的答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM