3

我想说:

manifestmerger.enabled=true

在我的project.properties文件中(请参见此处了解原因;从谷歌搜索看来,应该将这一行添加到project.properties)。但是,在我的project.properties文件顶部,它说:

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!

如果我的project.properties文件是自动生成的并且我不应该编辑它,我应该把我的manifestmerger.enabled=true声明放在哪里?我一直在环顾四周,但找不到应该去的明显位置或如何编辑project.properties,以便在自动生成文件时不会替换我的编辑。

4

1 回答 1

0

您可以将设置添加到ant.properties文件中。ant.properties 文件可以由您创建。它仅由编辑编辑

根据build.xml

     The ant.properties file can be created by you. It is only edited by the
     'android' tool to add properties to it.
     This is the place to change some Ant specific build properties.
     Here are some properties you may want to change/update:

     source.dir
         The name of the source directory. Default is 'src'.
     out.dir
         The name of the output directory. Default is 'bin'.

     For other overridable properties, look at the beginning of the rules
     files in the SDK, at tools/ant/build.xml

     Properties related to the SDK location or the project target should
     be updated using the 'android' tool with the 'update' action.

     This file is an integral part of the build system for your
     application and should be checked into Version Control Systems.

manifestmerger.enabled并列tools/ant/build.xml在.

于 2013-01-28T23:58:42.987 回答