Bug 53140 - Visual Studio 2017 No Longer Deploys To Genymotion Emulator
Summary: Visual Studio 2017 No Longer Deploys To Genymotion Emulator
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-03-08 02:56 UTC by Ruben Macias
Modified: 2017-03-08 17:47 UTC (History)
3 users (show)

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

VS2017 Logs (2.04 KB, application/x-zip-compressed)
2017-03-08 02:56 UTC, Ruben Macias

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 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:

Description Ruben Macias 2017-03-08 02:56:11 UTC
# Steps to reproduce
1. Open a current Android Project with the Release version of Visual Studio 2017
2. Start any Genymotion Android Emulator.
3. Build and deploy the android app from VS 2017 to a Genymotion Android Emulator

# Expected behavior
App should deploy to emulator and should be able to run and debug the app.

# Actual behavior
App compiles, but deployment error occures:  "Failure [INSTALL_FAILED_VERIFICATION_FAILURE]".

# Supplemental info (logs, images, videos)
I have enabled Unknown Sources and enable Developer Options on the emulator.  This used to work on the latest RC version of VS2017, but the released version is not completely broken with Genymotion Android Emulators.

# Test environment (full version information)
Microsoft Visual Studio Enterprise 2017
Version 15.0.26228.4 D15RTWSVC
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Visual Basic 2017   00369-60000-00001-AA096
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA096
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA096
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA096
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.6.00209.10
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30223.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50127.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

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

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

JetBrains ReSharper Ultimate 2016.3.2    Build 107.0.20170126.120331
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.13-alpha (2f64b6d)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

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

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

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

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   15.0.26228.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.

Xamarin (73f58d6)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (9578cdc)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (35d1ccd)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Ruben Macias 2017-03-08 02:56:49 UTC
Created attachment 20200 [details]
VS2017 Logs
Comment 2 Ruben Macias 2017-03-08 03:11:36 UTC
Okay I found a workaround.  In the Genymotion Android Emulator, so to Android Settings.  Then to Developer Options.  Then make sure "Verify apps over USB" is disabled.  After disabling this, I can now deploy and debug on Genymotion Emulators.

What is strange is that these options never changed and have always worked on all versions of VS2017 RC (I've been using it since it was publicly made available).  But as soon as I installed the released version, I encountered this error, so something must have changed.  I consistently debug and test on 6 different Genymotion Emulators and all of them failed with the same error and Android Settings were not changed in any of them.
Comment 3 Jose Gallardo 2017-03-08 14:14:48 UTC
Hi Ruben,

There was a change in the Android Tools version installed on VS 2017 RTW compared with the one installed on RC builds.
That might be the reason of the behavior change.

This is not a Xamarin issue, but related to how the emulator interacts with the Android tools.

Thanks for providing a workaround for it.