static hidden var EPOCH_TIME_PROP = "EpochTime";
hidden const EPOCH_TIME_PROP = "EpochTime";
I am bumping into the same problem. I have a several datafields dat also have a copy-version, to allow for a different set of settings (DR7c0 and DR6c0, for instance). Normally I can create a copy version by just copying all the files over except for the manifest file and then replace the line
class DatarunpremiumApp extends Toybox.Application.AppBase {
by:
class Datarunpremiumwith7metricscopy2App extends Toybox.Application.AppBase {
I also change the string files and app name in the resources, alongside some changes in the code (as the license for the copy version can be generated through the main version).
The error is only there when compiling for the midrange watches, like the Fenix 5 for example:
BUILD: ERROR: fenix5: unknown:0: Unable to resolve entry class. Check the manifest file.
The triathlon and Fenix watches have no problem and if I remove the midrange watches it builds fine.There is probably some reason why this doesn't work anymore. I have added a background process for the high-end watches which also uses storage in the latest version of the main version. However, it is quite unhelpful that the compiler throws in a non-descriptive error. I cannot find the cause and only know now that the problem is with the midrange watches.
PS: the manifest looks like this and apart from the application entry name and ID it is exactly the same as the main version. The jungle file is copied from the main version as well and has different resourcepaths and sourcepaths for the different types of watches
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --><iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3"> <iq:application entry="Datarunpremiumwith7metricscopy2App" id="56425202-0119-4e9f-a482-eb9641ec2950" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="1.3.0" name="@Strings.AppName" type="datafield" version="0.0.1"> <iq:products> <iq:product id="fenix5s"/> <iq:product id="fenixchronos"/> <iq:product id="fenix5"/> <iq:product id="fenix5x"/> <iq:product id="fenix6spro"/> <iq:product id="fenix6pro"/> <iq:product id="fenix6xpro"/> <iq:product id="fr735xt"/> <iq:product id="fr935"/> <iq:product id="fenix5plus"/> <iq:product id="fenix5splus"/> <iq:product id="fenix5xplus"/> <iq:product id="d2charlie"/> <iq:product id="d2delta"/> <iq:product id="d2deltapx"/> <iq:product id="d2deltas"/> <iq:product id="fr645m"/> <iq:product id="fr645"/> <iq:product id="fr245m"/> <iq:product id="fr945"/> <iq:product id="marqathlete"/> <iq:product id="marqaviator"/> <iq:product id="marqcaptain"/> <iq:product id="marqdriver"/> <iq:product id="marqexpedition"/> <iq:product id="descentmk1"/> </iq:products> <iq:permissions> <iq:uses-permission id="UserProfile"/> <iq:uses-permission id="Sensor"/> <iq:uses-permission id="SensorHistory"/> <iq:uses-permission id="Background"/> </iq:permissions> <iq:languages> <iq:language>eng</iq:language> </iq:languages> <iq:barrels/> </iq:application> </iq:manifest>