AR Foundation vs AR Core Optional build error

Hi,

I’m trying to convert AR Interface experimental implementation to AR Foundation which is now available as preview package, alas I’m encountering this error:

BuildFailedException: "ARCore Supported" (Player Settings > XR Settings) refers to the built-in ARCore support in Unity and conflicts with the "ARCore XR Plugin" package.

I have an app, where AR is only optional, I cannot uncheck that as otherwise I’ll force app to be built with Android SDK 24+ which is not desired… There was a similar problem with older unity versions when building AR Core plugin apps which was fixed in 2017.4, can this be done for AR Foundation as well?

BuildFailedException: ARCore Required apps require a minimum SDK version of 24. Currently set to AndroidApiLevel16

With AR Interface I was able to ship iOS/Android implementation of AR but Android is a bit buggy, so I want to switch to a newer and official Unity supported XR implementation.

Any solution?

1 Like

Go to Edit > Project Settings > Player > Android > XR Settings, and disable ARCore Supported.
3553290--285877--upload_2018-7-4_11-21-28.png
Then go to Edit > Project Settings > ARCore, and create and assign an ARCoreSettings object.
3553290--285878--upload_2018-7-4_11-23-29.png
Then in the inspector for that ARCoreSettings object, set AR Core Requirement to Optional.
3553290--285879--upload_2018-7-4_11-24-20.png

8 Likes

Thanks, that kind of moved me further, but now I see this:

I do have all the packages required…

I have same issue still cant solve it

Change build system to gradle it solved my problem

i have also the same problem build and ar core confloict with ARcore xr plugin

i can make Run action but it’s not showing anything in my laptop but when i build my project this error shows up …
i did install ARcore XR plugin, AR Foundation.
how can i fix this … thanks.

1 Like

Just go to player settings>XR settings and disable ARCore Supported.