- Home /
dll is not allowed to be included or could not be found" error unity3d for android
Hello,
I am getting following error while building project for android platform.
ArgumentException: The Assembly System.Configuration is referenced by System.Data. 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) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) UnityEditor.HostView:OnGUI()
Please help me if you any idea for this error
Regards, Nandan
Answer by TonyLi · Jul 02, 2013 at 03:10 PM
Two things to try:
Add System.Configuration.dll your Plugins folder.
In Build Settings > Player Settings > API Compatibility Level, change the .NET setting.
Then try to build again and see if the error goes away or changes.
@TonyLi I am also facing the same but the above answer does not solved my problem.Can you please help me ?
@yashesh in My case also not working :( Please anyone guide yaar....
I change it from .NET sub 2.0 to .NET. And it worked thanks! Although my concern would be what will be effected upon changing this.
Answer by Chofo7 · Nov 30, 2014 at 11:36 PM
change options in Unity, player setting, oter settings: Api compatibility level: .Net 2.0
yea this worked ins$$anonymous$$d of using the .Net 2.0 subset
.Net 2.0
worked
Answer by traveler · Apr 23, 2015 at 04:24 PM
The player settings change to Net 2.0 worked for me. Thank you very much!
Answer by AnaLidia · Jan 23, 2016 at 01:30 AM
Thank you very much, also helped me to my, the change to .Net 2.0
Answer by wanglittleyun · Apr 10, 2017 at 10:30 AM
沒錯Build Settings > Player Settings > API Compatibility Level, change the .NET setting to .Net 2.0 就好了
Your answer
Follow this Question
Related Questions
Get Phone number of android mobile device - Android native code to Unity c# 3 Answers
Is it possible to block unity's input? 1 Answer
CommandInvokationFailure: Gradle build failed. unity 2019.4.22 1 Answer
CommandInvokationFailure: Failed to re-package resources. Please Help. 2 Answers
How can I browse files on Android outside of the Unity App folder? 2 Answers