Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating a Clockface

I am trying to create a simple watch face but every time I do this error comes up saying "One or more required files do not exist in the project: resources/index.gui and resources/widgets.gui". I have tried just adding the files but when I add them they are blank and make the clockface black. Does anyone know what code I have to put in the files? I am trying to run to work with the 4.2 OS and the Versa 2. Thanks!

Best Answer
5 REPLIES 5

It sounds like you made a new project whilst SDK 5.0 was being deployed.

 

Rename /resources/index.view to /resources/index.gui

Rename /resources/widget.defs to /resources/widgets.gui

Edit /resources/widgets.gui and replace the contents with this:

<svg>
  <defs>
    <link rel="stylesheet" href="styles.css" />
    <link rel="import" href="/mnt/sysassets/widgets_common.gui" />
  </defs>
</svg>
Best Answer

Same issue still existed for me (2020-10-14). The solution below helped.

I also use 4.2OS and a Versa - no Lite, no 2, no 3 - just Versa 😉

Thanks for posting the original question and the solution 🙂

Best Answer
0 Votes

I get this issue

 

Hi all I'm trying to run the sample from get started, a clock face. I get connected to the simulator and stuff though I get the following errors. And I don't see anything that talks about them is the get started.
----------
This project is being built without a companion component. Create a file named companion/index.ts or companion/index.js to add a companion component to your project.


-----------


Resources set as: Fitbit Versa SDK 4.2

Any help

Best Answer
0 Votes

Corrected

Best Answer
0 Votes

This recommended fixes have been useful in getting Ionic simulator to work properly.

Best Answer
0 Votes