我正在尝试在 MonkeyC 中制作可绘制对象,以便制作自己的 WatchFace。但是,资源编译器似乎不起作用,因为它不断弹出此错误:
BUILD: ERROR: D:\MonkeyC\O-face\source\OfaceView.mc:70: extraneous input '<' expecting {<EOF>, 'using', '(', 'native', 'static', 'hidden', 'var', 'const', 'class', 'function', 'module', 'enum'}
这是我的相关代码:
<resources>
<drawable-list id="Post" x ="30" y ="30" width = "40" height = "40" background="Gfx.COLOR_BLACK">
<shape type="Polygon" x="37" y="3" points = "3" width = "34" height = "34" color="Gfx.COLOR_ORANGE" />
<shape type="Polygon" x="3" y="3" points = "3" width = "34" height = "34" color="Gfx.COLOR_WHITE" />
</drawable-list>
</resources>