修改AndroidManifest.xml中与构建标记导致在Eclipse无限重建 [英] Modifying AndroidManifest.xml with build tag causes infinite rebuilding in Eclipse

查看:243
本文介绍了修改AndroidManifest.xml中与构建标记导致在Eclipse无限重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个标签/日期戳系统,发现这里对堆栈溢出类似线程我的Andr​​oid构建系统:的 Android中的APK 嵌入版本的详细信息。

I've added a tagging / date-stamping system to my Android build system similar to the thread found here on Stack Overflow: embed version details in android APK

此制定出非常适合我,职位是真棒,我只是修改了Perl来放在一个邮戳像这样的:

This worked out great for me, The post was awesome and I simply modified the Perl to put in a datestamp like thus:

perl -npi -e 's/(Build Date:)(.+)(DEV-MOB)/"Build Date: " . localtime() . " DEV-MOB"/e;' $MANIFEST

我处理现在的问题是,Eclipse希望遍地继续建设。只要它看到了AndroidManifest.xml中发生了变化,它开始另一个自动构建,从而改变AndroidManifest.xml中,引发另一个自动构建...冲洗,泡沫,重复。

The issue I'm dealing with now is that Eclipse wants to continue building over and over. As soon as it sees that the AndroidManifest.xml has changed, it starts another autobuild, thereby changing the AndroidManifest.xml and sparking another autobuild... Rinse, lather, repeat.

我已经关闭了自动构建,其结果是对我罚款(即只建立在一个调试的部署和/或干净后),而不是每一个文件保存和/或变化Eclipse是想做。同事希望自动构建正常运作,并说我的日期标记是有缺陷的,否则。

I've turned off the "Build Automatically," and the result are fine for me (i.e. only build on a debugging deployment and/or after a clean), not on every single file save and/or change as Eclipse is want to do. Co-worker wants the Autobuild functioning as normal, and says my date stamping is defective otherwise.

我如何获得建设者,以纪念树刷新和/或向上的最新修改后的And​​r​​oidManifest.xml,这样的树没有继续循环?貌似是评价,说刷新的标志和previous生成后触发一个新的版本。

How do I get the "Builder" to mark the tree as refreshed and/or up-to-date after modifying the AndroidManifest.xml, so that the tree doesn't keep looping? Looks like the flag that says "refreshed" is evaluated and triggers a new build after the previous build.

谢谢,我能上的日期如果需要,冲压后的更多细节。

Thanks, I can post more details on the date stamping if desired.

DD

推荐答案

检查您的制造商是第一位在项目建设者列表的顺序。

Check that your builder comes first in the Project builders list order.

这篇关于修改AndroidManifest.xml中与构建标记导致在Eclipse无限重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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