登录  注册

首页->HarmonyOS应用开发者基础认证

在一个包含多个模块(如 entry、feature、service、librany 等)的大型 HarmonyOS 应用项目中,如果某个模块 feature 对另外一个公共库模块 library 有依赖,如何通过 DevEco Studio 正确配置项目依赖关系 ( )

(A)在 lilbrary 的 oh-package.json5 文件的 dependencies 字段中配置 feature 的依赖

(B)无需配置,直接在代码中编写 importxxx from "librany

(C)在 feature 的 oh-package.json5 文件的 dependencies 字段中配置 library 的依赖

(D)在 feature 的 bulld-profile.json5 文件的 dependencies 字段中配置 library 的依赖

参考答案
继续答题:下一题
微考学堂微考学社

更多HarmonyOS应用开发者基础认证试题

考试