Ticket Created
over 3 years ago

CIQQA-778

Montana devices only - circular dependency error when instantiating BikeRadar in DataField app

I have not experienced this on any other device but the Montana, but it happens both on the Simulator as well as a real device (as reported by one of my users) ... but the following line of code gives a circular dependency error no matter where it is placed:

bikeRadar = new AntPlus.BikeRadar(null);
Right now I have it in the initialize of my FitContributions class. But it also gives that error from within the View class initialize method. I have pushed my latest code to the github repository for the project available here:
Also, edited to add that the Montana user said that they used my app with no problems, but the latest update to the Montana (not to my app, I hadn't updated my app in a really long time) was causing the problem. I recompiled my app for the new version of the Connect IQ sdk and now I am getting this error when trying to run the device on the Montana simulator, but not when I run it on other devices (edge, watches, etc...).
Parents Comment Children
  • Update, the user said that it has never worked on his device. Suggestion: the manifest.xml editor (I can't even remember where those checkboxes are now, but I think it's there) should check more than just the ConnectIQ version supported by the device. It should also do a simple check of what classes are used by the app and gray out those boxes. Otherwise, we are depending on Garmin to keep their SDK documentation accurate and update supported devices correctly rather than being able to depend on if a given device supports a particular version of Connect IQ that we would be able to use all features within that version of Connect IQ. 

  • Ah, that's strange. I always just check all the checkboxes that aren't grayed out when I recompile my app. The Montana is one of the ones that isn't grayed out. Also, the user said that it had been working for them. I will double check with them to make 100% sure that is what they meant per our email conversations, but it certainly sound like this from this quote: 

    Hello, unfortunately there are problems with the Montana. The app no longer works. Device crashes.