json - JsonFx with IL2CPP -


constructor not working il2cpp.here log get.

missingmethodexception: method not found: 'default constructor not found...ctor() of system.componentmodel.byteconverter'. @ system.argumentnullexception..ctor (system.string paramname) [0x00000] in :0 @ system.activator.createinstance (system.type type, boolean nonpublic) [0x00000] in :0 @ system.activator.createinstance (system.type type) [0x00000] in :0 @ system.componentmodel.typedescriptor.getconverter (system.type type) [0x00000] in :0 @ jsonfx.json.typecoercionutility.coercetype (system.type targettype, system.object value) [0x00000] in :0 @ jsonfx.json.jsonreader.readnumber (system.type expectedtype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0
@ jsonfx.json.jsonreader.readarray (system.type arraytype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0
@ jsonfx.json.jsonreader.readobject (system.type objecttype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0 @ jsonfx.json.jsonreader.readobject (system.type objecttype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0 @ jsonfx.json.jsonreader.readobject (system.type objecttype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0
@ jsonfx.json.jsonreader.readobject (system.type objecttype) [0x00000] in :0 @ jsonfx.json.jsonreader.read (system.type expectedtype, boolean typeishint) [0x00000] in :0 @ jsonfx.json.jsonreader.deserialize (int32 start, system.type type) [0x00000] in :0 @ jsonfx.json.jsonreader.deserialize (system.string value, int32 start, system.type type) [0x00000] in :0 @ jsonfx.json.jsonreader.deserialize[bgs] (system.string value) [0x00000] in :0 @ gamedata.parsejson () [0x00000] in :0 @ gamedata.loaddata () [0x00000] in :0 @ mainmenuui.start () [0x00000] in :0 @ system.array+internalenumerator1[system.collections.hashtable+slot].get_current () [0x00000] in <filename unknown>:0 system.internalenumerator1:get_current()

this problem stripping. note although "stripping level" setting in unity editor may set "disable" il2cpp scripting backend still perform equivalent byte code stripping.

as marius mentioned, need explicitly tell unity build toolchain not strip byteconverter type. can add link.xml file in assets directory following content:

<linker>   <assembly fullname="system">     <type fullname="system.componentmodel.byteconverter" preserve="all"/>   </assembly> </linker> 

this keep in byteconverter type (the preserve="all" element), might bit much, can follow documentation minimize amount of il code kept in assembly.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -