Topic locked

ARCore with Android build for Unity & Vuforia

Android Studio
March 27, 2022 - 6:56pm #1

Hi All,

 

Not sure if this is the correct forum, and if not I will move it. Thank you in advance.

Unity Version: 2020.3.32f1

Vuforia Version: 10-5-5

Im having a strange issue with creating an Android build and trying to use ARCore (vers. 4.1.9). If I attempt to use this through the Vuforia Configuration and then attempt to build, i get these errors:

 

Quote:

ARMv7 is not compatible with the ARCore version included when using the "Include ARCore Library" option in the VuforiaConfiguration. To use an older version of ARCore which supports ARMv7, please include ARCore manually in your project instead.

UnityEngine.Debug:LogError (object)

Vuforia.EditorClasses.PlayerSettingsValidationResultExtensions:Log (System.Action`1<string>,string)

Vuforia.EditorClasses.PlayerSettingsValidationResultExtensions:Error (string)

Vuforia.EditorClasses.PlayerSettingsValidationResultExtensions:LogHighSeverity (Vuforia.EditorClasses.PlayerSettingsValidationResult)

PlayerSettingsValidationTask:Execute ()

BuildObserver/<>c:<OnPreprocessBuild>b__3_0 (Vuforia.EditorClasses.VuforiaLifeCycleTask)

System.Collections.Generic.List`1<Vuforia.EditorClasses.VuforiaLifeCycleTask>:ForEach (System.Action`1<Vuforia.EditorClasses.VuforiaLifeCycleTask>)

BuildObserver:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

Quote:

Error building Player: ARMv7 is not compatible with the ARCore version included when using the "Include ARCore Library" option in the VuforiaConfiguration. To use an older version of ARCore which supports ARMv7, please include ARCore manually in your project instead.

Quote:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors

  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <294703faec74477f8b275446429fba82>:0

  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <294703faec74477f8b275446429fba82>:0

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

 

However, if i disable the ARCore in Vuforia Configuration, i do not get these errors and can build to my phone no problem. For now, I have no intention of uploading to Google Play, so the 32 bit vs 64 bit thing isnt a worry, except that my phone is old and a 32 bit device and cant use 64.

 

Any idea how to use ARCore in Vuforia Configuration? And why is it a good idea to use it? In the future, I DO want to upload to Google Play, so i know i will need to upgrade my device eventually, but for now its really confusing me. Any help is greatly appreciated! THanks!

Platform: 

ARCore with Android build for Unity & Vuforia

March 28, 2022 - 5:48am #3

Thanks for the reply, totally get the ARCore advantage, as well as the need to upgrade.

 

As to my original question, any idea why ARCore isnt playing nice? This was super frustrating, especially since in the past it wasnt an issue. I understand that updates often change things, and this is likely the case with me, however, i would still like to use ARCore with my build for the phone I have (a 32 bit architechture). Any idea whats happening and if theres a way i can still use ARCore with my build/device? Thanks

 

ARCore with Android build for Unity & Vuforia

March 28, 2022 - 4:52am #2

Hey there,

 

ARCore provides additional stability for your AR experience. Vuforia Engine utilizes ARCore through Vuforia Fusion: https://library.vuforia.com/environments/vuforia-fusion

If you're planning to build and deploy your app to the Google Play Store, I'd suggest to upgrade your development device to a 64-bit device. Here's some more information about the 64-bit issue: https://medium.com/@patrick_scheper/how-to-fix-the-black-screen-issue-on-android-when-using-vuforia-engine-51c59cc4c9d8

 

Kind regards,

Patrick Scheper

Technical Community Manager

Topic locked