gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 15:13:39 24 4
gpt4 key购买 nike

我想放:

manifestmerger.enabled=true

在我的 project.properties 文件中( see here for why ;从谷歌搜索看来,这一行应该添加到 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 以便在自动生成文件时我的编辑不会被替换。

最佳答案

您可以将设置添加到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.enabledtools/ant/build.xml中列出。

关于android - 如果 project.properties 说它是自动生成的,我该如何编辑?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14573335/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com