Android Watch Face Setting Up

189 Views Asked by At

The code I'm using

Hi! I am using the code above for making my own watch face; and for line 127 it tells me that: it cannot define the symbol "bg"!

My question: Why am I getting this error? Btw don't know if it's relevant but I'm doing this within the default hello world app

and I'm also using a package companyname.test instead of the watch face one in that code...

Everything else looks clean as far as syntax errors go....

Thanks!

1

There are 1 best solutions below

4
ianhanniballake On BEST ANSWER

The Watch face samples contains a number of resources, one of which is a background graphic: bg.png. If you haven't included that resource in your project then you are attempting to reference a non-existent resource and receive an error.