xLua icon indicating copy to clipboard operation
xLua copied to clipboard

2018.4.3f1 Android端发布

Open BensonMaZIHao opened this issue 5 years ago • 1 comments

再编辑器上没问题但是android端发布报错 2021-01-19 13:55:41.320 17839-17867/? E/Unity: LuaException: xlua.access, no field __Hotfix0_HidePage stack traceback: [C]: in field 'access' [string "Init"]:101: in field 'hotfix' luaScript:17: in main chunk [C]: in function 'require' [string "chunk"]:1: in main chunk at XLua.LuaEnv.ThrowExceptionFromError (System.Int32 oldTop) [0x00050] in :0 at XLua.LuaEnv.DoString (System.Byte[] chunk, System.String chunkName, XLua.LuaTable env) [0x00072] in :0 at XLua.LuaEnv.DoString (System.String chunk, System.String chunkName, XLua.LuaTable env) [0x0000c] in :0 at DownLoadFileManager.ExcuteHotFix () [0x000ca] in :0 at DownLoadFileManager+<GetAssetBundle>d__9.MoveNext () [0x0026c] in :0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <930eb16cce8646f1bc56ac8d2bdbfbdd>:0

我想问在android 怎么注入啊 CSObjectWrapEditor.Generator.GenAll(); CSObjectWrapEditor.Generator.GenAll(); Hotfix.HotfixInject (); 这样为啥调不到报错没有

BensonMaZIHao avatar Jan 19 '21 06:01 BensonMaZIHao

可以参考 https://github.com/Tencent/xLua/issues/850

dreamCirno avatar Jan 25 '21 04:01 dreamCirno