Jul
5
2016

Android: MissingMethodException: Method not found: ‘Default constructor not found…

Suddenly started getting these error messages on device (build worked fine otherwise, but tcp socket stopped working)
You can view device log with command line> adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG

Solutions:
– Use IL2CPP build instead of Mono2x
– Or, set Stripping Level: Disabled (any other stripping level didn’t work)

Probably the cause was changing Api Compatibility Level from “.net 2.0 Subset” into “.net 2.0”..

I/Unity   (20578): MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'.
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostInitParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0
I/Unity   (20578): Rethrow as ConfigurationErrorsException: Erro
I/Unity   (20578): MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'.
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostInitParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0
I/Unity   (20578): Rethrow as ConfigurationErrorsException: Erro
D/dalvikvm(20578): Trying to load lib /data/app-lib/com.app.someapp-315/libvrunity.so 0x42db5ef8
D/dalvikvm(20578): Shared lib '/data/app-lib/com.app.someapp-315/libvrunity.so' already loaded in same CL 0x42db5ef8
D/dalvikvm(20578): Trying to load lib /data/app-lib/com.app.someapp-315/libvrunity.so 0x42db5ef8
D/dalvikvm(20578): Shared lib '/data/app-lib/com.app.someapp-315/libvrunity.so' already loaded in same CL 0x42db5ef8
I/Unity   (20578): MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'.
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostInitParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0
I/Unity   (20578):   at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0
I/Unity (20578): Rethrow as ConfigurationErrorsException: Erro


Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.