Colliding plugins[arcore_client.aar] error when building after importing Mapbox SDK
Using Unity 2019.2.21 f1
Hi, importing Mapbox SDK works fine but the moment I try to build my application I get this error
*Found plugins with same names, Packages/com.unity.xr.arcore/Runtime/Android/arcore_client.aar and Assets/GoogleARCore/SDK/Plugins/arcore_client.aar. Delete the one of the duplicate plugins. UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions(String) UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:122)
Plugins colliding with each other.
Build completed with a result of 'Failed' UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:122)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:122) image of the error*
So apparently Android/arcore_client.aar and Assets/GoogleARCore/SDK/Plugins/arcore_client.aar are colliding the latter is getting imported from Mapbox.
What have I tried
tried disabling the GoogleARCore/SDK/Plugins/arcore_client.aar . This made it possible to build the application HOWEVER -> The AR Camera of all my scenes that use arcore-arfoundation for plane detection and object placement did not activate. Instead, I would get a skybox.
--> I have no idea why this happens because it works perfectly before importing Mapbox and the arcore_client.aar that I disabled should not affect this as this was imported together with the Mapbox SDK. So my guess is that it stopped working the moment I imported Mapbox and not when I disabled the arcore_client.aar
tried deleting Android/arcore_client.aar instead of disabling GoogleARCore/SDK/Plugins/arcore_client.aar -> gives a lot of errors
tried using Wikitude ar camera and plane detection -> this works but the tracking is a lot worse than that of google arcore so this is not an option
tried messing with the ar camera options in the inspector --> no luck so far AR Camera inspector
THANKS IN ADVANCE
Your answer
Follow this Question
Related Questions
How does Google Expect you to use Cloud Anchors in ARCore with Photon? 0 Answers
Deck Scripting problem 2 Answers
my android doesn't read the image target on AR 0 Answers
AdMob no longer works 0 Answers
Why are materials not being applied to imported Solidworks files to Unity for VR viewing? 0 Answers