3***@qq.com
3***@qq.com
  • 发布:2023-04-14 14:46
  • 更新:2023-04-14 15:02
  • 阅读:208

app真机测试时,只要修改一句代码,保存后就无法热更新,必须重新编译,找不到原因

分类:uni-app

14:38:12.492 正在同步手机端程序文件...
14:38:14.127 同步手机端程序文件完成
14:38:14.652 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught SyntaxError: Invalid or unexpected token
14:38:16.042 同步手机端程序文件完成
14:38:16.408 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught SyntaxError: Invalid or unexpected token
14:38:17.241 同步手机端程序文件完成
14:38:18.435 同步手机端程序文件完成
14:38:18.889 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught SyntaxError: Unexpected end of input
14:38:19.504 同步手机端程序文件完成
14:38:19.878 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught SyntaxError: Invalid or unexpected token
14:38:20.513 同步手机端程序文件完成
14:38:20.881 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught SyntaxError: Invalid or unexpected token

2023-04-14 14:46 负责人:无 分享
已邀请:
k***@163.com

k***@163.com

我的也是这样

  • 3***@qq.com (作者)

    我找到的解决办法是,关掉HbuilderX,然后重新打开,上个卫生间回来,重新运行项目,现在没有报这个错误了,


    无语,我猜测是之前打开HbulderX后立刻开始运行项目,HbulderX可能内部有什么文件没有渲染完成,造成我真机测试,每次热编译都没办法运行。

    2023-04-14 15:09

  • k***@163.com

    回复 3***@qq.com: 我的简单很多。直接运行->运行到安卓基座,然后停止再运行就可以了。热更新会出现白屏错误

    2023-04-14 15:29

  • 阿米托福

    回复 k***@163.com: 怎样解决啊 我这也是别的没办法了吗

    2023-05-24 22:24

  • coder_shen

    回复 3***@qq.com: nb

    2023-07-23 14:08

要回复问题请先登录注册