跳过build.xml的Eclipse验证 [英] Skip Eclipse validation of build.xml

查看:149
本文介绍了跳过build.xml的Eclipse验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照 Android开发人员博客,以生成一个用于构建Android应用程序版本的build.xml。我需要做一个自定义编译,所以我已经覆盖了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 (在执行脚本时加载但在构建中并不存在) .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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆