Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Syronia's avatar
Syronia
Honored Guest
8 years ago

sample framework error

Hi~ I'm use Unity 5.6.1f1(64bit)... anyway new project >>> import OculusSampleFramework.unitypackage(downloaded 30mins ago) >>> switch platform to android >>> connect Samsung S6 smartphone >>> build and run button click >>> error 
==error message is here ==
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.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()
== and order error message is here ==
Error building Player: 2 errors

2 Replies

Replies have been turned off for this discussion
  • I also experienced this issue migrating a project from Unity 5.6.0f3 to 5.6.3f1.  I was including the OVR Samples for reference and found the simplest solution to work around this error was simply to remove my OVRSamples directory from the project.