在一个项目中添加多个模块,无法运行子模块?

按照张荣超老师的教学内容:

在一个项目中添加多个模块,无法运行子模块?-开源基础软件社区在添加了一个 demo01_pageability 的子模块后,把红框里的内容拷贝到了 demo01_pageability 的 config.json 里面,但是报错了:

在一个项目中添加多个模块,无法运行子模块?-开源基础软件社区直接运行,也是报错的,报错信息如下:

Execution failed for task ':demo01_pageability:mergeDebugProfile'.
> ConfigJsonError: CONFIG_STATUS_ERROR
    > Reason: An error occurred when configuring the config.json file of the 'demo01_pageability' project.
  > An installationFree feature module cannot contain action.system.home or entity.system.home in the skills label
    > File: D:\DevEcoStudioProjects\HarmonyOSLearning\demo01_pageability\src\main\config.json

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

大家帮我看看吧。

多个模块
2021-06-12 18:08:20
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
张荣超老师
2

需要把installationFree设置为false,如下图所示:

分享
微博
QQ
微信
回复
2021-06-14 09:59:20
相关问题
一个页面怎么实现多个AbilitySlice?
11946浏览 • 5回复 待解决
虚拟机上运行不了鸿蒙项目
4123浏览 • 1回复 待解决
python 如何安装 redis 模块
1351浏览 • 1回复 待解决
模块签名配置DevEcoStudio报错
5159浏览 • 2回复 待解决
Hi3861怎么获取一个随机数?
8944浏览 • 1回复 已解决
导入ohos相关模块都找不到
3323浏览 • 1回复 待解决
模拟器上是不显示device模块的吗?
3891浏览 • 1回复 待解决
MongoDB中如何创建一个新的数据库?
1761浏览 • 1回复 待解决