gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

Can't build for android #115

Closed APTEM591 closed 2 years ago

APTEM591 commented 2 years ago

When i try to build my game to android, it returns and error. It happens only when i choose "Any Platform" in plugin settings.

ArgumentException: The Assembly Mono.WebBrowser is referenced by System.Windows.Forms ('Assets/StandaloneFileBrowser/Plugins/System.Windows.Forms.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 <42425271a85c48a781b5ae89b9328419>:0) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <42425271a85c48a781b5ae89b9328419>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

APTEM591 commented 2 years ago

Fixed by installing Mono.WebBrowser and Mono.Posix in Plugins folders.