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 に答える