gpt4 book ai didi

Android android dependencies annotations.jar in ADT 18

转载 作者:行者123 更新时间:2023-11-29 00:38:47 26 4
gpt4 key购买 nike

我正在使用 Eclipse indigo,使用 jdk 1.6.. 我已经将我的 Android 插件从 ADT 14 更新到 ADT 18 ,当我创建新项目或每当我清理项目时 Android dependencies with annotations.jar 出现在我的项目中我该如何删除它,这在添加外部 jar 时会导致很多问题(例如 java.lang.NoClassDefFoundError 异常) ..?

我阅读了这个链接 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17他解释了 ADT 17。如果我将 lib 文件夹重命名为 libs,引用的库将保留在项目中

最佳答案

我解决了这个问题,annotations.jar 是构建 android 项目所必需的 jar。如果你的项目中有任何 TargetApi 和 SuppressLint 注释,那么这个 jar 将帮助你忽略注释元素的指定警告。

关于Android android dependencies annotations.jar in ADT 18,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10933967/

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