I ran a simple example , but got below Exception, I think it may caused by api level, but I did not know the exact reason, and how to solve it. please help, thanks!
---------------
Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Long/Double/Char, given Number/Array
Stack:
- findDrawableById() at 704b03c0.mb:1657 0x30002aa4
- onUpdate() at xxxxxxxxxxxxxxxxxxxxxx:29 0x100000da
-------------
function onUpdate(dc) {
View.findDrawableById("whwLabel").setText("helloWorld"); // this is line 29
View.onUpdate(dc);
}
-------------- below is my layout.xml
<layout id="WhwWatchFace">
<label id="whwLabel" x="center" y="50%" font="Graphics.FONT_LARGE" justification="Graphics.TEXT_JUSTIFY_CENTER"/>
</layout>