503
社区成员
本样例以OH知识体系样例中的智能清扫车为例
设备准备:
1、HarmonyOS 手机一台,Harmony OS 版本2.0.0.168以上;
2、润和Pegasus智能小车套件
https://gitee.com/openharmony-sig/knowledge_demo_smart_home
工具下载:
https://developer.harmonyos.com/cn/develop/deveco-studio
安装后配置SDK版本为6以上即可
·首先在AppGallery Connect中创建项目
https://developer.huawei.com/consumer/cn/service/josp/agc/index.html
·点击确认后,添加.JSON文件,请一定记住是放在entry之下。
注:无论是重构添加还是复制添加,请一定放在entry之下。
分别在下面三个文件中把bundleName中的包名修改为自己定义的包名(com.example.test.distschedule)。
1.DistSchedule/entry/src/config.json
2.DistSchedule/netconfig/src/main/config.json
3.DistSchedule/netconfig/src/main/js/default/pages/index/index.js
密钥、签名文件获取
点击图标
备注:要连接真机时,才可以自动获取p7b和cer文件
来到运行/调试配置窗口,选择entry并勾选上Deploy Multi Hap Packages
哇~赞赞赞