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
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName
- Testing Unity MUSE AI
- QR Code Generator Online
Recent Comments
- [Asset Store] Mobile Paint *now free on
- Scorched Earth Terrain (wip) on
- UI Text TypeWriter Effect [Script] on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Bitmap2Mesh (release v3.0) on
- [Asset Store] Mobile Paint *now free on
- [Asset Store] Mobile Paint *now free on