一、DeprecatedEnum.lua no value
_G.LAYOUT_ABSOLUTE = ccui.Type.ABSOLUTE
_G.LAYOUT_LINEAR_VERTICAL = ccui.Type.VERTICAL
_G.LAYOUT_LINEAR_HORIZONTAL = ccui.Type.HORIZONTAL
_G.LAYOUT_RELATIVE = ccui.Type.RELATIVE
解决:将这段代码改为
_G.LAYOUT_ABSOLUTE = ccui.LayoutType.ABSOLUTE
_G.LAYOUT_LINEAR_VERTICAL = ccui.LayoutType.VERTICAL
_G.LAYOUT_LINEAR_HORIZONTAL = ccui.LayoutType.HORIZONTAL
_G.LAYOUT_RELATIVE = ccui.LayoutType.RELATIVE