Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.07k stars 1.15k forks source link

[Bug] ARSession.CheckAvailability() always returns ARSessionState.NeedsInstall ! #887

Closed Sami-AlEsh closed 3 years ago

Sami-AlEsh commented 3 years ago

Describe the bug App Always prompt me to install Google Play Services for AR (even it is already installed)

To Reproduce Steps to reproduce the behavior:

  1. Build app with a script that contain "ARSession.CheckAvailability()"
  2. Install app on POCO X3 Pro
  3. Open app

Expected behavior It should returns ARSessionState.Ready

Actual behavior It returns ARSessionState.NeedsInstall

Smartphone (please complete the following information):

DavidMohrhardt commented 3 years ago

We don't support that version of Unity or ARFoundation and relevant packages anymore. Please update to the next LTS Unity Release and use the verified package versions there. If the problem persists after that then log a bug at https://unity3d.com/unity/qa/bug-reporting and post the case number here.

tdmowrer commented 3 years ago

This sounds familiar; Android SDK or Gradle version perhaps? See https://github.com/Unity-Technologies/arfoundation-samples/issues/740

Sami-AlEsh commented 3 years ago

I updated the project to Unity 2020.1 & ARFoundation 3.1.10 (verified version), and it works like a charm 😄.