跳过 build.xml 的 Eclipse 验证 [英] Skip Eclipse validation of build.xml
问题描述
我已按照 Android 开发者博客 生成 build.xml 以构建 Android 应用程序的版本.我需要做一个自定义编译,所以我已经覆盖了 ant_rules_r3.xml 的目标编译,正如它在生成的 build.xml 中所说的那样.
I've followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have overwritten the target compile of the ant_rules_r3.xml as it is said in the generated build.xml.
<target name="compile" depends="-resource-src, -aidl, -pre-compile" ...
脚本运行正常并生成 apk,但问题是 Eclipse 显示错误,因为它找不到目标 -resource-src
、-aidl
和 -pre-compile
(在执行脚本时加载,但实际上并不存在于 build.xml 中).由于存在这些错误,我无法在 Eclipse 中处理该项目.
The script works fine and generates the apk, but the problem is that Eclipse shows an error because it cannot find targets -resource-src
, -aidl
and -pre-compile
(which are loaded when executing the script but are not really present on the build.xml). As there are these errors I cannot work with the project in Eclipse.
如何在 Eclipse 中跳过对单个文件的验证?
How can I skip the validation of this single file in Eclipse?
推荐答案
我不知道您是否可以对单个文件执行此操作,但我认为您可以在验证下的 eclipse 首选项中禁用验证.
I do not know if you can do this for a single file but i think you can disable the validation within the eclipse preferences under Validation.
这篇关于跳过 build.xml 的 Eclipse 验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!