我这边使用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

这种情况怎么解决!
目前发现的是,在代码里面加入了调用原生平台的代码,就会报错

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