Vuforia does not work in Unity 2018.1.0b2

I’ve created an empty project with Vuforia Augmented Reality checked and when I build & run the project the console says theses errors:

*** Cancelled ‘Build.Player.AndroidPlayer’ in 0 seconds (50 ms)
Build completed with a result of ‘Failed’
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:181)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:175)
(Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 181)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:181)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:175)
(Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 94)

First question is, how can I fix these errors and second one is, how can I know what version of vuforia is Unity using.

Thank you.

Hey Freseco, unfortunately Vuforia doesn’t currently work in the beta/alpha 2018 releases due to some API changes in Unity as well as a change we made to the Android build process in Unity that the Vuforia SDK wasn’t forward compatible with at the time. We have addressed these issues with Vuforia and updates to the Vuforia plugin will be in upcoming versions of 2018.1 and 2018.2.

Unfortunately for now, you’ll need to use 2017.3 if you wish to develop a Vuforia application with the native support in Unity. Sorry for the inconvenience.

As for knowing what version of Vuforia being used, there should be a Vuforia version call that you can make through script, or you can check the Unity release notes for the version.

2 Likes

If Vuforia is enabled, you can go to the Assets\Resources folder and click on VuforiaConfiguration. Look at the inspector and there is a line for Vuforia version.

In that way you definitely should remove the vuforia option in the unity download assistant.

Oh, well I just installed vuforia using unity download assistant and figured that I cant build Apk… What is the best way of deleting vuforia extension from entire Unity?

Go to the directory you installed Unity into, then go into Editor\Data\PlaybackEngines. Delete the VuforiaSupport folder.