I want to put:
我想说:
manifestmerger.enabled=true
in my project.properties
file (see here for why; from googling it looks like this line is supposed to be added to project.properties
). However, at the top of my project.properties
file, it says:
在我的项目。属性文件(请参阅此处了解原因;从谷歌搜索来看,这一行应该被添加到project.properties中)。然而,在我项目的顶端。属性文件,它说:
# 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'm not supposed to edit it, where do I put my manifestmerger.enabled=true
statement? I've been looking around but can't find an obvious place where it should go or how to edit project.properties
such that my edits aren't replaced when the file is auto-generated.
如果我的项目。属性文件是自动生成的,我不应该编辑它,我应该把我的manifestmerger在哪里?启用= true声明吗?我一直在寻找,但找不到一个明显的地方,它应该去哪里或如何编辑项目。属性,当文件自动生成时,我的编辑不会被替换。
1 个解决方案
#1
0
You may add the setting into ant.properties
file. The ant.properties file can be created by you. It is only edited by the
您可以将设置添加到ant中。属性文件。蚂蚁。属性文件可以由您创建。它只是由
According to build.xml
:
根据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
.
和manifestmerger。在tools/ant/build.xml中列出了enabled。
#1
0
You may add the setting into ant.properties
file. The ant.properties file can be created by you. It is only edited by the
您可以将设置添加到ant中。属性文件。蚂蚁。属性文件可以由您创建。它只是由
According to build.xml
:
根据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
.
和manifestmerger。在tools/ant/build.xml中列出了enabled。