cocos creator 3.8.2发布android 运行抛出异常

我这边使用cocos creator3.8.2版本 打包apk运行时出现错误:
15:39:20 [ERROR]: JS: Error: Unable to instantiate chunks:///_virtual/Main.ts from chunks:///_virtual/App.ts, stack: Error: Unable to instantiate chunks:///_virtual/Main.ts from chunks:///_virtual/App.ts
at b. (src/system.bundle.js:1:4850)
at b. (src/system.bundle.js:1:7751)
at b.instantiate (src/system.bundle.js:1:6644)
at src/system.bundle.js:1:2254
image
这种情况怎么解决!
目前发现的是,在代码里面加入了调用原生平台的代码,就会报错

image
如图,在ts里面只加了这一句代码,打包出来就不能运行了,去掉就正常了

这个是不是win平台的 在andriod上不能用 加一个平台判断呢

解决了吗?同样的问题。