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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Problem with InputSystem when on build

Discussion in 'Input System' started by kader1081, Apr 24, 2023.

  1. kader1081

    kader1081

    Joined:
    Oct 16, 2021
    Posts:
    365
    Hi when i tried to built my game it gave very weird error about assembly and dll things i was building as development build i disabled it and now i get this errors


    Library\PackageCache\com.unity.inputsystem@1.5.1\Tests\TestFixture\InputTestFixture.cs(94,29): error CS0117: 'InputSystem' does not contain a definition for 'SaveAndReset'


    Library\PackageCache\com.unity.inputsystem@1.5.1\Tests\TestFixture\InputTestFixture.cs(168,29): error CS0117: 'InputSystem' does not contain a definition for 'Restore'


    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <a259d3c004024353a2c217da97495055>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <a259d3c004024353a2c217da97495055>:0
    UnityEngine.GUIUtility:processEvent (int,intptr)




    I tried to remove the restore and savereset line after that it gave this error

    ArgumentException: The Assembly nunit.framework is referenced by Unity.InputSystem.TestFramework ('Library/PlayerScriptAssemblies/Unity.InputSystem.TestFramework.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <a259d3c004024353a2c217da97495055>:0)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <a259d3c004024353a2c217da97495055>:0)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    I tried to remove and reinstall the input system version 1.5.1 no change

    I tried 1.5.0 version no change
     
    Last edited: Apr 24, 2023
  2. kader1081

    kader1081

    Joined:
    Oct 16, 2021
    Posts:
    365
    Okey I solved the problem i guessed my unity editor version does not support 1.5.1 version with a little research i found that 2019.04 version supports 1.4 and before versions
     
    OttSaar likes this.
  3. OttSaar

    OttSaar

    Joined:
    Dec 1, 2017
    Posts:
    1
    Thanks kader1081! Just had the same issue and was looking everywhere for some answers.. Downgrading to 1.4 helped.
     
    kader1081 likes this.