Bug 51750 - Upgrading to Android Wear 1.4.0 breaks CanvasWatchFaceService.Engine OnCreateEngine
Summary: Upgrading to Android Wear 1.4.0 breaks CanvasWatchFaceService.Engine OnCreate...
Status: RESOLVED FEATURE
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-01-25 01:03 UTC by Mark McLemore
Modified: 2017-01-27 11:31 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Intellisense error (32.15 KB, image/png)
2017-01-25 01:03 UTC, Mark McLemore
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Mark McLemore 2017-01-25 01:03:35 UTC
Created attachment 19471 [details]
Intellisense error

When I download and build this WatchFaceDemo app, it builds OK with Wear 1.1.0-beta4 (the version in its packages.config):

https://github.com/Redth/Talks/tree/master/2014.12.11-Wear.CSharp.on.your.Wrist-Londont.NET.User.Group/Code/WatchFaceDemo

However, when I update it to use the current stable Xamarin.Android.Wear 1.4.0 NuGet, WatchFaceDemo no longer builds and Intellisense displays this error underlining OnCreateEngine():

    MyWatchFaceService.OnCreateEngine()': return type must be 'WallpaperService.Engine' to match overridden member    'CanvasWatchFaceService.OnCreateEngine()'

When I downgrade to version 1.3.0, it builds, but I get the following runtime error when I attempt to run the WatchFace service:

    Java.Lang.RuntimeException: Unable to instantiate service watchface.MyWatchFaceService: java.lang.ClassNotFoundException: Didn't find class "watchface.MyWatchFaceService" on path: DexPathList ..."

This latter error seems to imply that it's looking for a type name, which it won't find now that ACW naming uses MD5SUM.

-------------
Using Visual Studio 2015 Pro on Windows 10, info dump below:

Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Professional

LightSwitch for Visual Studio 2015   00322-50051-16309-AA622
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-50051-16309-AA622
Microsoft Visual Basic 2015

Visual C# 2015   00322-50051-16309-AA622
Microsoft Visual C# 2015

Visual C++ 2015   00322-50051-16309-AA622
Microsoft Visual C++ 2015

Visual F# 2015   00322-50051-16309-AA622
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00322-50051-16309-AA622
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   5.209.60613.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Clang with Microsoft CodeGen   14.0.25317
Clang with Microsoft CodeGen

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio   2.2.40315.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.40315.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.40315.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.60311.1
Microsoft SQL Server Data Tools

TypeScript   1.8.31.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25116.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25116.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25219.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

VsVim   2.2.0.0
VsVim is a Vim emulator for Visual Studio

Xamarin   4.2.2.6 (27a9b40)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.2.42 (501e63c)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.3.1.7 (8b53676)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Atsushi Eno 2017-01-27 11:31:03 UTC
Whenever you upgraded your Java library, you have to fix your bindings (or you should contact the author of the dependency bindings). Xamarin.Android binding build system never assures either your Java library backward compatibility or bound API compatibility.