用javadoc的问题问题、javadoc

2023-09-06 02:59:53 作者:天黑请闭眼。

当我开始一个新的Andr​​oid项目,并使用原生Android的方法和组件和Java方法和组件,我无法阅读他们的描述,因为javadoc的给我发这样的信息:

When I start a new android project and use native android methods and components and java methods and components, I can't read their description because javadoc send me this message:

注意:这个元素没有附加源的Javadoc无法在附加Javadoc中找到的

Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc.

我在我的Andr​​oid SDK文件夹了最新的Andr​​oid文档和javadoc的作品时,我用标准的Java项目的工作,但与Android项目。你有什么想法,为什么它发生,我怎么能解决这个问题?

I have the latest android documentation in my android-sdk folder and javadoc works when I work with standard java projects, but not with android project. Have you got any ideas why does it happen and how can I fix this issue?

推荐答案

我发现自己的解决方案。在这种情况下,你需要改正你的Javadoc位于的项目 - >属性 - > Java构建path-> AndroidX.X(XX是平台版本)的路径 - > android.jar->的Javadoc位置

I found solution myself. In this situation you need to correct a path of your javadoc at Project->Properties->Java Build path->AndroidX.X(where X.X is platform version)->android.jar->Javadoc location.

它应该在您的文档指出\参考位置

It should be pointed at your docs\reference location