BlackHeart
BlackHeart
  • 发布:2020-09-25 11:07
  • 更新:2020-11-04 11:07
  • 阅读:1157

【报Bug】app真机无法调试

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10 1909

HBuilderX类型: 正式

HBuilderX版本号: 2.8.11

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 小米

手机机型: 小米MIX2S

页面类型: vue

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

点击调试就白屏

预期结果:

正常调试

实际结果:

白屏

bug描述:

在真机上运行时正常的,但一进入调试就会调试工具和真机白屏。不知道是不是跟新笔记本amd的CPU有关,以前旧笔记本用英特尔的是可以正常调试的。换了新的笔记本后就不行了。
日志报错:
11:01:35.281 正在启动调试服务
11:01:36.497 (node:5196) UnhandledPromiseRejectionWarning: Error: Chromium revision is not downloaded. Run "npm install" or "yarn install"
11:01:36.497 at Launcher.launch (D:\develop\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:119:15)
11:01:36.497 at <anonymous>
11:01:36.497 (node:5196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
11:01:36.497 (node:5196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
11:01:36.497
11:01:37.475 调试服务已启动。日志信息将显示在Debug窗体的Console里

2020-09-25 11:07 负责人:无 分享
已邀请:
赖赖不在

赖赖不在

你尝试一下https://ask.dcloud.net.cn/article/37973这里面的方法,再次感谢@DCloud_UNI_GSQ 大大

  • BlackHeart (作者)

    谢谢,用你和@DCloud_UNI_GSQ大佬的方法解决了。

    2020-11-09 09:38

  • 天字第一号

    确实好用,这个问题一直有,搜了好几次,这次终于解决了,感谢

    2020-12-25 13:43

DCloud_UNI_GSQ

DCloud_UNI_GSQ

重新安装一下真机调试插件

  • BlackHeart (作者)

    试过了,重装插件,重装HBuilder X,重装nodejs,都试过了的。

    2020-09-25 11:32

该问题目前已经被锁定, 无法添加新回复