04-30-2022 12:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 12:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I am trying to follow the Getting Started guide to create my first clock face for my Versa Lite. Fitbit Studio is connected to the simulator. Both are set to target the Versa Lite. I also changed the SDK version to 4.3. However, it is not building. Is it because my fitbit is an older model? Thanks.
This is the output text:
- One or more build targets was invalid: atlas, vulcan
- package.jsonError: Project configuration is invalid
- Build failed.
Answered! Go to the Best Answer.

Accepted Solutions
04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Studio doesn't make this easy. Try renaming package.json to package.json.txt, make the changes, then rename it back.
Gondwana Software
04-30-2022 13:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2022 13:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You need to get rid of build targets 'atlas' and 'vulcan', and use 'gemini'. That's done in package.json.
Gondwana Software

04-30-2022 14:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 14:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi. Thank you. I now understand where the issue is, but can't change the package.json in Fitbit Studio. When I click on it on the left, it doesn't show the code on the right.

04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Studio doesn't make this easy. Try renaming package.json to package.json.txt, make the changes, then rename it back.
Gondwana Software
04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 14:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I found the answer on another post: rename package.json to package.txt, edit out the vulcan and atlas, rename back to package.json

04-30-2022 14:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 14:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Found the answer fto the missing gui files by renaming existing index.defs to index.gui and widget.defs to widgets.gui.
Now I need to find out what goes in the companion/index.js file. It is empty at the moment.
Getting closer. Thanks for helping along.
04-30-2022 18:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 18:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
For anyone that stops by looking for the answers as I was, here are a few more tips:
This is for creating a clock face for the Fitbit Versa Lite.
Make the changes to the simulator and Fitbit Studio as I did on my first post.
Also, in FitBit Studio, where it says 'Select Phone' and 'Select Device', change both to the simulator.
Then you'll be able to build and run the clock face app after making the following changes.
Then rename existing index.defs and widget.defs to index.gui and widgets.gui, respectively.
If you receive errors about companion/index and settings/index, close the clock face project.
Then create a new project but select the 'Settings' project option.
Copy the contents of companion/index.js and paste them into the index.js file for your clock face project.
Do the same for the settings/index.js: copy from the new project and paste to the clock face project.
After doing all these steps, the test app/clock face built and ran just fine. Hope this helps others.
I'll be around if any questions arise and I'm able to help.
04-30-2022 18:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-30-2022 18:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry, the above index.defs and widget.defs are under the resources folder.

