新的默认build.xml包含以下部分:
<!-- Import the actual build file.
To customize existing targets, there are two options:
....
(text removed for brevity)
....
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
将'1'替换为'custom'并将该行注释掉是否足以阻止文件被覆盖?或者是否有必要取消注释,如果是,那么正确的语法是什么?
答案 0 :(得分:6)
只需将'1'替换为'custom':
<!-- version-tag: custom -->