Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Vuforia does not work in Unity 2018.1.0b2

Discussion in '2018.1 Beta' started by freseco, Jan 10, 2018.

  1. freseco

    freseco

    Joined:
    May 6, 2015
    Posts:
    4
    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.
     
  2. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    303
    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.
     
    Last edited: Jan 11, 2018
    charlesb_rm and freseco like this.
  3. ThatDarnCat

    ThatDarnCat

    Unity Technologies

    Joined:
    Jan 4, 2017
    Posts:
    23
    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.
     
  4. tufeixp

    tufeixp

    Joined:
    Sep 6, 2015
    Posts:
    22
    In that way you definitely should remove the vuforia option in the unity download assistant.
     
  5. Gasimo

    Gasimo

    Joined:
    Mar 3, 2015
    Posts:
    41
    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?
     
  6. ThatDarnCat

    ThatDarnCat

    Unity Technologies

    Joined:
    Jan 4, 2017
    Posts:
    23
    Go to the directory you installed Unity into, then go into Editor\Data\PlaybackEngines. Delete the VuforiaSupport folder.