原内容非标题格式,无需修改。按照要求,此内容不产生符合要求的标题输出。

发布于 1周前 作者 nodeper 来自 鸿蒙OS

原内容非标题格式,无需修改。按照要求,此内容不产生符合要求的标题输出。 该依赖的模块都在oh-package中配置了,但是还是还有一坨这样的警告

> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.
> hvigor WARN: The current module 'phone' has dependency which is not installed at its oh-package.json5.

是因为那些被dependency的模块中又存在动态import导致的吗?


3 回复

1、需要查看具体警告,可能是循环依赖导致的,解决循环依赖参考wiki如下: https://gitee.com/openharmony/docs/blob/f4b0234377d60272bb3eaea14720fc9e4302a54e/zh-cn/application-dev/faqs/faqs-arkts-utils.md

2、根据错误的具体原因修改。

3、如果告警不会导致编译构建报错,可以暂时不用理会,如果会导致编译报错,那就需要解决。 基于当前的日志还不足以分析具体原因,需要提供更加完整的日志。

/******/ 此警告因为依赖或者间接依赖的版本存在冲突警告,无法去掉 例如:entry依赖了一个1.0.0的三方包harA,一个har模块依赖了一个1.0.1的三方包harA


该警告不影响编译构建,不会出现编译构建报错的情况,可以忽略,

这种情况可能是当前module下的 oh-package.json5 是不是和根目录下 oh-package.json5的依赖重复了或者其他第三方也依赖的同样的库 或者 版本不一致,其中也包含 间接依赖的部分情况况,或者是 依赖 某些三四方库

如果只是 动态import 并不会出现该警告

针对你在鸿蒙系统中遇到的应用闪退问题,可以尝试以下步骤进行排查和解决:

  1. 检查系统更新:确保你的鸿蒙系统已经更新到最新版本。有时候,系统更新会修复一些已知的漏洞和稳定性问题。

  2. 检查应用版本:确认闪退的应用是否为最新版本。如果不是,尝试更新到最新版本,因为新版本可能已经修复了闪退问题。

  3. 检查存储空间:确保手机存储空间充足。存储空间不足可能导致应用运行不稳定,从而引发闪退。

  4. 关闭不必要的后台应用:多任务切换时,过多的后台应用会占用系统资源,可能导致当前应用闪退。尝试关闭不必要的后台应用,看是否能解决问题。

  5. 重置应用偏好设置:在鸿蒙系统的设置中,找到应用管理,选择闪退的应用,尝试重置其偏好设置。

如果问题依旧没法解决请联系官网客服,官网地址是 https://www.itying.com/category-93-b0.html

回到顶部