gpt4 book ai didi

android - 此类文件的 Jar 属于容器 'Android Dependencies',该容器不允许修改其条目上的源附件

转载 作者:IT老高 更新时间:2023-10-28 21:50:51 26 4
gpt4 key购买 nike

我正在制作一个电子邮件应用程序,该应用程序在此问题的标题中给出了错误。我该如何解决这个问题?如果有助于找到解决方案,我将提供我的代码截图。

enter image description here

最佳答案

对此有官方解决方案:

Allow src/doc attachement for 3rd party jars in libs/

Since those jars are added dynamically through a classpath container, the devs cannot set the source path and the javadoc through Eclipse UI (container don't allow editing those). To fix this, and to make sure that both paths are picked up not only by the current project, but also by other projects (if the current project is a library project), the value is set by a file sitting next to the jar file. The file is name after the jar file, adding .properties at the end. For instance foo.jar -> foo.jar.properties It can currently contain 2 properties: src: relative or absolute path to the source folder (or archive). doc: relative or absolute path to the javadoc.

https://android-review.googlesource.com/#/c/35702/

编辑:Explanation in Google I/O 2012 video

例如,对于 Joda-Time 2.1:

cd $PROJECT/libs
touch joda-time-2.1.jar.properties

并插入以下内容,确保路径正确:

src=/Users/josh.oneal/SDKs/joda-time-2.1/joda-time-2.1-sources.jar
doc=/Users/josh.oneal/SDKs/joda-time-2.1/joda-time-2.1-javadoc.jar

您现在可以在 Eclipse 中右键单击您的项目并刷新,然后 Command/Ctrl + 单击一个类,例如 DateTime 以查看其源代码。

关于android - 此类文件的 Jar 属于容器 'Android Dependencies',该容器不允许修改其条目上的源附件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10075453/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com