在ADT 20.0.0(从here链接)中添加了manifestmerger
属性(包括库项目的清单到应用程序项目中)。是否可以在maven构建中启用此属性?如果是,怎么样?
答案 0 :(得分:2)
从the pull request which added the feature提供准确答案:
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<!-- add the following mergeManifests option -->
<mergeManifests>true</mergeManifests>
</configuration>
</plugin>
答案 1 :(得分:1)
该功能已添加到android-maven-plugin中,详情可从以下链接获取:https://github.com/jayway/maven-android-plugin/pull/135
答案 2 :(得分:0)
以上答案适用于包含来自APKLIB的清单。
但是APKLIBs是AAR的前身,AAR是Android当前的图书馆打包标准。
要合并AAR中的清单,请使用以下命令:
<?php echo base_url();?>
请参阅http://simpligility.github.io/android-maven-plugin/manifest-merger-mojo.html