Unity发布android项目报错 Plugins colliding with each other
419 Views
Unity版本5.4.3f1
ARtoolkit版本5.3.2
Android SDK Tools版本24.4.1
下载ARUnity5-5.3.2.unitypackage导入Unity,发布在PC上正常运行。
发布在Android上报出以下错误:
Found plugins with same names and architectures, Assets/Plugins/Android/libARWrapper.so (ARMv7) and Assets/Plugins/x86/libARWrapper.so (AnyCPU). Assign different architectures or delete the duplicate.
UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions(String)
UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Plugins colliding with each other.
根据提示,在Assets/Plugins/x86/libARWrapper.so更改属性Select platforms for plugin把Any Platform勾选框去掉,点击Apply
若还有其他文件发生冲突,则同样取消掉Any Platform