Bug 56889 - Android app failing to deploy to VS Emulator for Android, emulator fails to start form IDE
Summary: Android app failing to deploy to VS Emulator for Android, emulator fails to s...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.5.0 (15.2)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-26 19:22 UTC by Jon Goldberger [MSFT]
Modified: 2017-05-30 18:25 UTC (History)
4 users (show)

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

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:
Status:
RESOLVED NOT_ON_ROADMAP

Description Jon Goldberger [MSFT] 2017-05-26 19:22:40 UTC
## description

VS Emulator for Android fails to start from IDE, but it starts successfully if launched from the VS Emulator for Android app. However even if the emulator is running, the app still fails to deploy with no actionable error message displayed. Below is the output when the emulator fails to launch:

>1>Starting deploy 10.1" Marshmallow (6.0.0) XHDPI Tablet ...
>1>Starting emulator 10.1" Marshmallow (6.0.0) XHDPI Tablet ...
>1>An error occured. See full exception on logs for more details.
>1>Object reference not set to an instance of an object.
>========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

I have not been able to reproduce this issue. Log files from the affected customer are linked below. Error in log seems similar to those in bug 52917 and bug 52752


## Log files

https://microsoft-my.sharepoint.com/personal/jgolde_microsoft_com/_layouts/15/guestaccess.aspx?guestaccesstoken=ukkXy9ZJ908KU3kNPc8Np4Sw3diHu8ycqRY%2bfblZXt0%3d&folderid=2_174c943ed1eb147b8aee91fb7f75e0531&rev=1

## Notes

Customer's computer does not have a skylake processor, but just in case we did try to do what is in this blog post:
https://blogs.msdn.microsoft.com/cesardelatorre/2016/02/06/solving-issue-with-vs-android-emulator-xamarin-apps-and-intel-skylake-processor-i-e-when-using-a-microsoft-surface-book-i7-surface-pro-4-etc/

Customer is running PC with Windows 10 Professional and Visual Studio 2017 Community. Requesting more complete version info.
Comment 1 Joaquin Jares 2017-05-30 17:12:18 UTC
There's no plans to support VS Emulators in 2017 atm. That said, they do work most of the time.
Comment 2 Jon Goldberger [MSFT] 2017-05-30 18:25:17 UTC
Providing version info anyway:

Microsoft Visual Studio Community 2017 
Version 15.1 (26403.7) Release
VisualStudio.15.Release/15.1.0+26403.7
Microsoft .NET Framework
Version 4.7.02046
Installed Version: Community
Visual Basic 2017   00369-60000-00001-AA621
Microsoft Visual Basic 2017
Visual C# 2017   00369-60000-00001-AA621
Microsoft Visual C# 2017
Visual C++ 2017   00369-60000-00001-AA621
Microsoft Visual C++ 2017
Visual F# 4.1   00369-60000-00001-AA621
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.30320.0
ASP.NET and Web Tools 2017
ASP.NET Web Frameworks and Tools 2017   5.2.50303.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
Common Azure Tools   1.9
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
JavaScript UWP Project System   2.0
JavaScript UWP Project System
KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info
Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
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.
Node.js Tools   1.3.50316.00
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager   4.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2017 ENU   15.0.26112
Microsoft Office Developer Tools for Visual Studio 2017 ENU
SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools
TypeScript   2.1.5.0
TypeScript tools for Visual Studio
Visual C++ for Cross Platform Mobile Development (Android)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (Android)
Visual C++ for Cross Platform Mobile Development (iOS)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (iOS)
Visual Studio Tools for Apache Cordova   15.113.6201.1
Visual Studio Tools for Apache Cordova
Visual Studio tools for CMake   1.0
Visual Studio tools for CMake
Visual Studio Tools for Unity   3.1.0.0
Visual Studio Tools for Unity
Visual Studio Tools for Universal Windows Apps   15.0.26403.07
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.
Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Xamarin   4.4.0.34 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK   7.2.0.7 (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK   10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.