How do I change the project.properties if it says it is autogenerating?

I want to put:

manifestmerger.enabled=true

      

in my project.properties

file ( see here why ; from googling it looks like this line should be added to project.properties

). However, at the top of my project.properties

file it says:

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

      

If my project.properties

file is auto-generated and I don't have to edit it, where can I put the instruction manifestmerger.enabled=true

? I look around but can't find an obvious place where it should go, or how to edit project.properties

so that my changes aren't overwritten when the file is autogenerated.

+3


source to share


1 answer


You can add the setting to the file ant.properties

. The ant.properties file can be created by you. It is only editable

According to 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.

      

And manifestmerger.enabled

is listed in tools/ant/build.xml

.

0


source







All Articles