04-27-2018 07:55
04-27-2018 07:55
I'm having an odd issue the Studio I'm getting the following errors when running my app from Fitbit Studio:
What caused the errors is I moved some of the my screens to a sub folder in resources (and updated the hrefs where needed). If I move the files out of the sub folder the messages stop.
Even with the messages the app works without issue on both the an actual Versa and in the Simulator.
And there are no build errors.
Answered! Go to the Best Answer.
04-30-2018 01:08
04-30-2018 01:08
It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.
I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files
04-27-2018 10:58
04-27-2018 10:58
Probably need to see the project structure and gui file contents. Can you put it on github?
04-28-2018 09:54
04-28-2018 09:54
I'll get it posted to Github this weeked.
04-28-2018 16:22
04-28-2018 16:22
I am getting the same error...
04-29-2018 05:17
04-29-2018 05:17
That makes at least two of us 🙂
I have posted my app to get hub ( https://github.com/grumpy-coders/pointy ). It was requested above. I had planned on hosting it there anyways, but hadn't gotten to it yet.
04-29-2018 05:18
04-29-2018 05:18
I have posted it to get hub: https://github.com/grumpy-coders/pointy
04-30-2018 01:08
04-30-2018 01:08
It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.
I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files
04-30-2018 08:06 - edited 04-30-2018 08:07
04-30-2018 08:06 - edited 04-30-2018 08:07
That worked great.
Just make sure I'm coding this correctly.
When using the same imported widget across multiple files the "link" should go into the widgets.gui and not in each of the gui files?
04-30-2018 08:08
04-30-2018 08:08
Yeah, import once and it's available everywhere.
05-27-2018 14:51
05-27-2018 14:51
Well, in my case, it is different.
I have a clock face, and I made it available on Ionic and Versa. So, here is my widgets gui file:
<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="circles.css" />
<link rel="stylesheet" href="styles~300x300.css" />
<link rel="stylesheet" href="circles~300x300.css" />
<link rel="import" href="/mnt/sysassets/widgets_common.gui" />
</defs>
</svg>
And I get this error:
05-27-2018 15:03
05-27-2018 15:03
Ha! Replying to myself...finally figured out that I don't need to list BOTH sets of files in my widget.gui files. Whew! Duh...
It says so in the docs, but I guess my mind was wandering...
Works fine now!