Project wont build because of Assembly error after importing Oculus Sample Framework

When I import the GearVR Sample Framework the project wont build I get the error:

ArgumentException: The Assembly UnityEditor is referenced by Assembly-CSharp (‘Library/ScriptAssemblies/Assembly-CSharp.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 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String paths, System.String foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()

I have tried this in unity 5.6.1f1 and 5.6.0p4 I get the error in both.
I have jdk1.8.0_131 installed and android studio 2.3.2 with api level 24 and 25 of the android sdk installed.

Is anyone else having this problem? Anyone find the solution?

I’m having the same problem, but the closest thing I’ve found is your question.