【发布时间】:2015-06-15 08:36:37
【问题描述】:
构造函数不使用 IL2CPP。这是我得到的日志。
MissingMethodException:找不到方法:'没有默认构造函数 找到... ctor() of System.ComponentModel.ByteConverter'。在 System.ArgumentNullException..ctor (System.String paramName) [0x00000] 在 System.Activator.CreateInstance 的 :0 中 (System.Type 类型,布尔非公共)[0x00000] in :0 在 System.Activator.CreateInstance(System.Type 类型) [0x00000] 在 :0 处 System.ComponentModel.TypeDescriptor.GetConverter(System.Type 类型) [0x00000] 在 :0 处 JsonFx.Json.TypeCoercionUtility.CoerceType (System.Type targetType, System.Object 值)[0x00000] in :0 at JsonFx.Json.JsonReader.ReadNumber (System.Type expectedType) [0x00000] 在:0 在 JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0
在 JsonFx.Json.JsonReader.ReadArray (System.Type arrayType) [0x00000] 在:0 在 JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0
在 JsonFx.Json.JsonReader.ReadObject (System.Type objectType) [0x00000] 在:0 在 JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0 at JsonFx.Json.JsonReader.ReadObject (System.Type objectType) [0x00000] in :0 at JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0 at JsonFx.Json.JsonReader.ReadObject (System.Type objectType) [0x00000] 在:0 在 JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0
在 JsonFx.Json.JsonReader.ReadObject (System.Type objectType) [0x00000] 在:0 在 JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean typeIsHint) [0x00000] in :0 at JsonFx.Json.JsonReader.Deserialize (Int32 start, System.Type 类型)[0x00000] in :0 at JsonFx.Json.JsonReader.Deserialize(System.String 值,Int32 开始, System.Type 类型)[0x00000] in :0 at JsonFx.Json.JsonReader.Deserialize[BGS](System.String 值) [0x00000] in :0 在 GameData.ParseJson () [0x00000] in :0 在 GameData.loaddata () [0x00000] in :0 at mainmenuUI.Start () [0x00000] in :0 在 System.Array+InternalEnumerator1[System.Collections.Hashtable+Slot].get_Current () [0x00000] in <filename unknown>:0 System.InternalEnumerator1:get_Current()
【问题讨论】:
标签: json unity3d jsonfx il2cpp