【关键字】
display.isFoldable() / 监听折叠屏状态
【问题描述】
调用监听折叠屏状态的方法报错,但是不影响运行
调用display.isFoldable(),display.on()时报错 The target device of this project does not include the required SystemCapability. <ArkTSCheck>
【解决方案】
该问题解决措施参考如下:
在phone.json加上"SystemCapability.Multimedia.Media.SoundPool", “SystemCapability.Window.SessionManager”