Bug 3508 - Visual Studio does not package with the same Android SDK that is opened via Tools -> Start Android Emulator Manager
Summary: Visual Studio does not package with the same Android SDK that is opened via T...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Jonathan Pobst
Depends on:
Reported: 2012-02-16 17:48 UTC by Eric Beisecker
Modified: 2016-08-03 15:24 UTC (History)
5 users (show)

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:

Description Eric Beisecker 2012-02-16 17:48:33 UTC
After running the Mono for Android installer on windows, Visual Studio will always package/deploy an android application using the Android SDK located at %HOME%\AppData\Local\Xamarin\MonoForAndroid. 

This can be very confusing if the user had another installation of the SDK on their machine that has been added to their path. This causes (in VS) Tools -> Start Android Emulator Manager to open the SDK manager found in their %PATH% rather than the one that MfA uses in %HOME%\AppData.

Screenshot: http://screencast.com/t/xaAmOMM6 (This shows the SDK manager opened from Tool->Start Android Emulator Manager in VS)

MonoForAndroid: 4.0.3
VS 2010
.NET 4.0
Comment 1 Michael Gray 2012-03-02 13:37:40 UTC
I can confirm this issue.

However for me it appears to use "C:\Program Files (x86)\Android\android-sdk\" no matter what you specify in the field in the Visual Studio plugin. However, the package manager for the Android SDK will download to the path specified. It just won't package your program using this location.
Comment 2 Jonathan Pobst 2012-04-19 11:04:27 UTC
This should be fixed in the 4.1 series.  We unified the code used by the VS plugin and msbuild.