- Home /
Question by
Programmer · Mar 03, 2014 at 11:26 AM ·
c#dll
Why do I get this error when I export my code to android phone?
Hi,
I get the following error when I build my app. I use System.Windows.Forms.dll in my project. I have copied the dll into Asset->Plugins->Android folder. Yet I get the following error. Can anyone help me?
ArgumentException: The Assembly System.Deployment is referenced by System.Windows.Forms. 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 C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/AssemblyHelper.cs:113)
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 C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/AssemblyHelper.cs:116)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/AssemblyHelper.cs:148)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Comment
AFAI$$anonymous$$ you can't use any of the forms stuff unless you are building for desktop (windows).
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
MSSQL Connection and Select 2 Answers
DLL Import => Build finish without Error but Can't Work 0 Answers