没有桌面图标会有三种可能:1.hap如果依赖多个hsp,hsp没装完导致hap没装上,需要通过hdc shell bm dump -a 包名查一下到底有没有安装2.看看module.json文件中的ability是否有配置skills,需要这样配置skills:"skills": [ { "entities": [ "entity.system.home" ], "actions": [ "action.system.home" ] } ]3.用hdc shell "bm dump -n 包名 这个命令判断是否是元服务应用 结果是0就是有桌面图标
没有桌面图标会有三种可能:
1.hap如果依赖多个hsp,hsp没装完导致hap没装上,需要通过hdc shell bm dump -a 包名查一下到底有没有安装
2.看看module.json文件中的ability是否有配置skills,需要这样配置skills:
3.用hdc shell "bm dump -n 包名 这个命令判断是否是元服务应用 结果是0就是有桌面图标