Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

[Bug] ARCore plugin provider needs API 24 even if it's optional #532

Closed AytoMaximo closed 4 years ago

AytoMaximo commented 4 years ago

Unity bug report case number Case 1260222

Describe the bug Hi! I'm not sure if it's a bug or my misunderstanding.

I want an app that can use ARFoundation optionally, only if it's available on device. Project settings -> XR -> ARCore BuildSettings set as "Optional" in my project.

Also I've checked ARCore plugin provider in XR Plug-in Management setting page, 'cas we need it for using ARCore feature on top devices.

The problem is that I can't make a build because of manifest merging failure: it forces me to use API 24 (Nougat 7.0) because of ARCore plugin provider. But I don't want to make my app target 7.0, ARCore is optional feature.

So, what I'm doing wrong here? Thank you!

Unity 2019.4.2 LTS ARFoundation 4.0.2 ARCore XR Plugin 4.0.3 XR Plugin Management 3.2.12

[UPD] Using XR PM 3.2.10 now because of this case

AytoMaximo commented 4 years ago

This is the message of an error and editor log file. Editor.log

image

tdmowrer commented 4 years ago

Thanks for reporting. It's a bug; will get it fixed asap.

tdmowrer commented 4 years ago

This has been fixed in ARCore XR Plugin package 4.0.4 https://docs.unity3d.com/Packages/com.unity.xr.arcore@4.0/changelog/CHANGELOG.html as well as the latest preview package.