[]构建好android studio项目后,debug出错

I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
let runtime = json.props.runtime;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at eval (native)
at Document._downloadOk (apploader.js:6059:20)
at apploader.js:6038:20
at FileReader.filereader.onload (apploader.js:6732:47)
>>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js
I/ViewRootImpl: CPU Rendering VSync enable = true
I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
let runtime = json.props.runtime;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at eval (native)
at Document._downloadOk (apploader.js:6059:20)
at apploader.js:6038:20
at FileReader.filereader.onload (apploader.js:6732:47)
I/LayaBox: >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js
I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
let runtime = json.props.runtime;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at eval (native)
at Document._downloadOk (apploader.js:6059:20)
at apploader.js:6038:20
at FileReader.filereader.onload (apploader.js:6732:47)
I/ViewRootImpl: CPU Rendering VSync enable = true
I/LayaBox: >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js
I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
let runtime = json.props.runtime;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at eval (native)
at Document._downloadOk (apploader.js:6059:20)
at apploader.js:6038:20
at FileReader.filereader.onload (apploader.js:6732:47)
>>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js
已邀请:

karin666

赞同来自:

请问该如何解决?

karin666

赞同来自:

baidu上说在js文件第一行加"use strict";可以解决
但我是ts项目,js是自动生成的,我该咋做呢?

karin666

赞同来自:

我擦!laya的开发人员能靠谱一点吗???
自己去看看1.7.18版本laya.ui.js文件5155行是什么鬼?!
拜托加强管理,不要这么坑,要知道你们坑一下,带给我们是多高的时间成本

要回复问题请先

商务合作
商务合作