-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building the watch golf app gives a bunch of errors #51
Comments
It looks like the Android Golf companion app is really old too. It is using gradle 2.2 and modern Android Studio won't even let you go back that far. Does Garmin offer any simple sample app that demonstrates how to send data from a watch to a companion app? This is the project they recommend on their website. |
The disk-golf-iq app hasn't been updated to support type checking. You can disable type checking to build, or you could make a patch for us. I think this is probably a good reminder for us to enable continuous integration for this project. |
As for the second question, I'm not sure. I've have zero experience with companion apps. The mobile SDK hasn't changed in quite a while. I'd be very surprised if you couldn't just update the project to use a supported version of Gradle to move forward. |
Thanks so much for the response. I am not very experienced with either language and was really just hoping for something working that I would be able to modify into what I wanted. As you said, I was able to get the android app working by modifying the gradle, unfortunately it is still crashing before it would even be connecting to the watch app. I am having more luck using code from the "Sleep as Android" apps right now, but if I get stuck with that I may come back and try to fix this disc golf code. |
All I did is cloned and built exactly as it is and I get this, is there something I am overlooking?
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:89,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:105,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:108,24: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:110,24: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:116,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:117,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:118,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:119,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:120,16: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:127,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:128,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQApp.mc:25: Cannot override '$.Toybox.Application.AppBase.onStart' with a different number of parameters.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQApp.mc:29: Cannot override '$.Toybox.Application.AppBase.onStop' with a different number of parameters.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:101,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:102,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:121,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/HoleView.mc:52,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/HoleView.mc:53,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/HoleView.mc:58,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/HoleView.mc:59,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:45,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:46,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:83,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:85,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:89,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:90,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/SaveRoundView.mc:47,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/SaveRoundView.mc:51,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:50,12: Cannot find symbol ':setText' on type '$.Toybox.WatchUi.Drawable'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:51,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:53,12: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:56,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:57,8: Cannot find symbol ':setText' on type 'PolyType<Null or $.Toybox.WatchUi.Drawable>'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:63,16: Cannot find symbol ':setText' on type '$.Toybox.WatchUi.Drawable'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:65,16: Cannot find symbol ':setText' on type '$.Toybox.WatchUi.Drawable'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:69,16: Cannot find symbol ':setText' on type '$.Toybox.WatchUi.Drawable'.
ERROR: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:71,16: Cannot find symbol ':setText' on type '$.Toybox.WatchUi.Drawable'.
WARNING: fenix6xpro: The app name should reference a string resource using @Strings.AppName
WARNING: fenix6xpro: The launcher icon should reference a Drawable resource using @Drawables.LauncherIcon
WARNING: fenix6xpro: The launcher icon (61x43) isn't compatible with the specified launcher icon size of the device 'fenix6xpro' (40x40). Image will be scaled to the target size.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:41,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:52,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:61,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:71,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:96,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Course.mc:127,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/CourseView.mc:35: Class 'CourseView' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQApp.mc:22: Class 'DiscGolfIQApp' does not initialize its super class 'AppBase'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:28: Class 'DiscGolfIQView' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:77,16: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/DiscGolfIQView.mc:121,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/HoleView.mc:29: Class 'HoleView' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:37,12: Cannot determine if container assignment is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:51,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:52,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:57,8: Cannot determine if container assignment is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:64,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:89,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:101,12: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/Player.mc:104,16: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:32: Class 'RoundView' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/RoundView.mc:225: Class 'RoundViewCommListener' does not initialize its super class 'ConnectionListener'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/SaveRoundView.mc:28: Class 'SaveRoundView' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/SaveRoundView.mc:51,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:29: Class 'ScorePicker' does not initialize its super class 'View'.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:126,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/ScorePicker.mc:127,8: Cannot determine if container access is using container type.
WARNING: fenix6xpro: /home/lunkwill/projects/disc-golf-iq/source/zDiscGolfBehaviorDelegate.mc:28: Class 'DiscGolfBehaviorDelegate' does not initialize its super class 'BehaviorDelegate'.
The text was updated successfully, but these errors were encountered: