洋芋博客

一个什么都分享的博客

我是在Vscode上用DeviceTool运行下载在Ubuntu的鸿蒙系统的时候出现的这个问题

报错如下

Verbose mode can be enabled via `-v, –verbose` option Uploading with qemuUpload qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb. scons: *** [run] Error -6

解决方案:

设置环境变量 export DISPLAY=:0

在Ubuntu命令行输入 gedit ~./bashrc

然后在最后加入上面的环境变量,记得点保存

最后 source ~./bashrc

2 comments

  1. 10 AI Widgets that will turn visitor into buyers

    AI Profits has been released to the public.

    From today you can access the 10 best AI tools that will help you convert visitors into buyers.

    Access for free, now from this link, before they delete it, because we know they are going to delete it.

    http://affiliateautobots.zoomdownload.xyz

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注