简体   繁体   English

Unity Android构建-无法合并清单文件

[英]Unity android build - unable to merge manifest files

I am trying to create an android build from unity game. 我正在尝试从统一游戏创建一个Android构建。 The build worked fine on Unity 5.5. 该构建在Unity 5.5上运行良好。 Ever since I upgraded to 2017.2, the build fails and gives me error that its unable to merge android manifest files due to some conflict with a plugin manifest. 自从我升级到2017.2以来,构建失败,并给我一个错误,由于与插件清单存在某些冲突,它无法合并android清单文件。

Following are the things I have tried 以下是我尝试过的事情

  • Deleting either of the manifest files and build 删除清单文件之一并生成
  • Deleting both the manifest files and build 删除清单文件和构建
  • Remove conflicting nodes in xml and build 删除xml中的冲突节点并进行构建
  • Change value of conflicting nodes in xml to the same value 将xml中冲突节点的值更改为相同的值

Every time I build, the files get written by conflicted values and it fails to build. 每次构建时,文件都会被冲突值写入,并且构建失败。 Anyone good with unity android build, please suggest a solution. 任何人都可以使用统一的android构建,请提出解决方案。

在此处输入图片说明

在此处输入图片说明

It is most likely because the two android manifest files conflict with each other. 这很可能是因为两个android清单文件相互冲突。 For example, a few weeks ago I got the same error when my minimum android API was 22 for one file and 24 for the other. 例如,几个星期前,当我的最低Android API对于一个文件为22,对于另一个文件为24,我遇到了相同的错误。 So I would suggest comparing the two files line by line and looking for conflicting pieces of information. 因此,我建议逐行比较这两个文件并查找有冲突的信息。 This may not work but it's worth trying anyway. 这可能不起作用,但是还是值得尝试的。

打开所有清单文件,并检查“ minSdkVersion”和“ targetSdkVersion”。所有清单应具有相同的这些变量值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM