[LayaAirIDE 1.0]打包后报错 Unexpected token in JSON at position 266
VM392:1 gameThirdScriptError
Unexpected token in JSON at position 266;at api readFile success callback function
SyntaxError: Unexpected token in JSON at position 266
at JSON.parse (<anonymous>)
at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)
at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25)
at Handler.__proto.runWith (http://127.0.0.1:31158/game/code.js:725:41)
at Function.success (http://127.0.0.1:31158/game/code.js:21629:33)
at Object.success (http://127.0.0.1:31158/game/__ ... 213995)
at r (http://127.0.0.1:31158/game/__ ... 221580)
at http://127.0.0.1:31158/game/__ ... 21763
at I (http://127.0.0.1:31158/game/__ ... 221767)
at Function.<anonymous> (http://127.0.0.1:31158/game/__ ... 223374)
Unexpected token in JSON at position 266;at api readFile success callback function
SyntaxError: Unexpected token in JSON at position 266
at JSON.parse (<anonymous>)
at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)
at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25)
at Handler.__proto.runWith (http://127.0.0.1:31158/game/code.js:725:41)
at Function.success (http://127.0.0.1:31158/game/code.js:21629:33)
at Object.success (http://127.0.0.1:31158/game/__ ... 213995)
at r (http://127.0.0.1:31158/game/__ ... 221580)
at http://127.0.0.1:31158/game/__ ... 21763
at I (http://127.0.0.1:31158/game/__ ... 221767)
at Function.<anonymous> (http://127.0.0.1:31158/game/__ ... 223374)
已解决
我也遇到了怎么解决的?
要回复问题请先登录
codekun • 2019-06-11 09:04
怎么解决的