如果它说是自动生成的,我如何编辑project.properties?

时间:2013-01-28 23:45:57

标签: android adt

我想说:

manifestmerger.enabled=true

在我的project.properties文件中see here for why;通过Google搜索,看起来此行应该添加到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,以便在自动生成文件时不会替换我的编辑。

1 个答案:

答案 0 :(得分: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