Problem with InputSystem when on build

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 :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :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.List1[T] alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at :0)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, UnityEditor.BuildTarget target) (at :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

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

1 Like

Thanks kader1081! Just had the same issue and was looking everywhere for some answers… Downgrading to 1.4 helped.

1 Like