在一个包含多个模块(如 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应用开发者基础认证试题
- 1我们在进行页面加载的时候会使用骨架图的方式进行页面优化,目的是为了提升什么指标 ( )
- 2下面哪些组件是容器组件?( )
- 3下述代码片段中的 renderGroup 属性,对性能的影响是什么 ( )struct IconItem { image,string | Resource=text: string | Resource =".build(){ Fiex({direction: FlexDirection.ColumnjustifyContent: FlexAlign.CenteralignContent: FlexAlign.Center}){ image(this,image)height(20).width(20).objectFil(lmageFitcontain).margin({ left.15 })// 系统组件 lmage 应用透明度渐变动效 transiti?n()} } }
- 4以下关于ArkTS声明式开发范式的基本组成说明正确的是()
- 5使用Image加载网络图片,需要以下那种权限?( )

