DevEco Studio导入项目出错解决

导入项目后报错如下:

Sync failed. Follow the given solution to avoid unexpected errors.

Cause: The @ohos/hvigor-ohos-plugin version () is not within the expected range 2.x.x (2.x.x >= 2.4.0). Solution: Switch to @ohos/hvigor-ohos-plugin 2.4.2(which will install @ohos/hvigor 2.4.2) and import the project again

解决方法:新建一个工程,在项目目录下>hvigor文件夹,拷贝里面的内容,覆盖出错项目的文件,然后重新同步。也可以升级dev eco studio套件到对应的版本解决。

发表回复 0

Your email address will not be published. Required fields are marked *