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
Related Posts
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on