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

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

在一个项目中添加多个模块,无法运行子模块?-鸿蒙开发者社区在添加了一个 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
相关问题
hsp子模块中如何加载悬浮窗页面
653浏览 • 1回复 待解决
多个feature模块的问题
719浏览 • 1回复 待解决
一个页面怎么实现多个AbilitySlice?
13197浏览 • 5回复 待解决
Native侧进行跨模块加载
263浏览 • 1回复 待解决
无法读取到hsp模块中的rawfile文件
863浏览 • 1回复 待解决
虚拟机上运行不了鸿蒙项目
5405浏览 • 1回复 待解决