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
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











