1.问题描述 在安装应用的时候报如下错误
Please try to match the APl version of the device and the app. The current device does not contain the following SysCap attributes in the rpcid,json file: SystemCapability.BundleManager.BundleFran ework.SandboxApp SystemCapability.WindowManager.WindowM anager.MutiScreen, SystemCapability.Multimedia.Camera.Distribut edCore
其实这个报错是当前的DevEco Studio版本过高,hap应用的版本较低导致的,但是其实生成了hap包,所以有三个方案解决
2.技术方案
方案一:
其实已经生成了hap,所以将其hap包路径进行替换然后重启设备即可
但是这个方案存在一个问题,就是我们将hap替换到源码里面编译烧录就不会安装上去,导致应用无法正常使用,所以此方案不推荐
方案二:
后续内容参考:https://gonglipeng.blog.csdn.net/article/details/147836525?spm=1001.2014.3001.5502