If you create a new watchface project with MonkeyC:New Project in vsc, you must keep it in mind that the View class extends WatchUi.View rather than WatchUi.WatchFace. So you cannot use onEnterSleep and onExitSleep in it. If you mis-use them, you will get the error below with out explict stack.(Maybe due to the error cannot be caught). Just a reminder. Have fun in coding。
---
Error: Symbol Not Found Error
Details: 'Failed invoking <symbol>'
Time: 2023-05-19T13:44:47Z
Part-Number: 006-B4024-00
Firmware-Version: '14.20'
Language-Code: eng
ConnectIQ-Version: 4.2.1
Store-Version: 3
Filename: D5FI0215
Appname: 'Is Today Friday?'
Stack: