如何修复“生成最终存档时出错:找到 APK 的重复文件:doc/allclasses-frame.html”
我编译了两个 jar 文件并将它们添加到我的 Android 项目的构建路径中。
我从 Eclipse 收到此错误: 生成最终存档时出错:找到 APK 的重复文件:doc/allclasses-frame.html
阅读后
如何修复“生成最终存档时出错:重复条目:AndroidManifest.xml”
我意识到可以通过重新导出 jar 文件来消除该错误没有文档。我这样做了,现在我的项目没有任何错误,但是我的文档呢?当我使用 Ctrl-空格自动完成功能时,有没有办法从我的库中查看文档?
我不必重新导出这两个 jar 文件。我只需重新导出与我正在处理的 Android 项目位于同一工作区中的那个即可。但是,Ctrl-空格键不显示任一 jar 文件中的文档。
我还想知道如何配置 jar 文件,以便在生成 javadoc 时可以生成链接。
I compiled two jar files and added them to the build path of my Android project.
I received this error from Eclipse:
Error generating final archive: Found duplicate file for APK: doc/allclasses-frame.html
After reading
How to fix "Error generating final archive: duplicate entry: AndroidManifest.xml"
I realized that I could eliminate the error by re-exporting my jar file without documentation. I did this, and now my project doesn't have any errors, but what about my documentation? Is there a way to see the documentation from my libraries when I use the Ctrl-space autocomplete?
I didn't have to re-export both of the jar files. I only had to re-export the one that is in the same Workspace as the Android project that I'm working on. However, Ctrl-space doesn't show me the documentation from either jar file.
I'd also love to know how to configure a jar file so that links can be generated when I'm generating the javadoc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 javadoc 保存在项目文件夹之外的单独 .jar 文件中。然后在项目属性>中告诉Eclipse Javadoc文件所在的位置构建配置。
您不会收到错误,并且仍然可以获得自动完成信息。
You can keep the javadoc in a seperate .jar file, outside of the project folder. Then tell Eclipse where the Javadoc file is located in the project properties > build configuration.
You won't get an error and still get the autocomplete info.