Bug 60259 - Android NDK Location is not remembered
Summary: Android NDK Location is not remembered
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.7.0 (15.4)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-10-18 16:20 UTC by Jeremy Kolb
Modified: 2017-12-04 20:35 UTC (History)
6 users (show)

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

Xamarin Logs (1.02 KB, application/x-zip-compressed)
2017-10-25 13:29 UTC, Jeremy Kolb
Logs (1.29 KB, application/x-zip-compressed)
2017-11-29 20:27 UTC, Jeremy Kolb

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 for Bug 60259 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:

Description Jeremy Kolb 2017-10-18 16:20:52 UTC
After upgrading to Visual Studio 2017 15.4.0 my NDK settings are not being remembered between restarts of VS.

My SDK: C:\Users\jkolb\AppData\Local\Android\android-sdk

My NDK SHOULD be: C:\Users\jkolb\AppData\Local\Android\android-sdk\ndk-bundle

If I set the above NDK location and then restart VS and go into the options menu the location will be blank.
Comment 1 Jeremy Kolb 2017-10-18 16:21:26 UTC
Microsoft Visual Studio Professional 2017 
Version 15.4.0
Microsoft .NET Framework
Version 4.7.02053

Installed Version: Professional

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

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

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

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

Application Insights Tools for Visual Studio Package   8.9.00809.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30925.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

Common Azure Tools   1.10
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

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

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

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

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   4.7.4-pre (c2d89eb)
Support for debugging Mono processes with Visual Studio.

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

TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

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

VisualStudio.IoT   1.0
Package with IoT components for Visual Studio

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

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

Xamarin.Android SDK (HEAD/7a6a056e8)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (9a9f054)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 2 Jeremy Kolb 2017-10-18 16:23:00 UTC
Note that the Xamarin Android SDK Manager sees the NDK.
Comment 3 Jimmy [MSFT] 2017-10-24 23:27:49 UTC
I haven't been able to reproduce this so far. Just to confirm, you didn't experience this with 15.3? Can you attach the recent logs from Help > Xamarin so we can look into this further? After attaching the logs go ahead and set this back to NEW, thanks!
Comment 4 Jeremy Kolb 2017-10-25 13:29:34 UTC
Created attachment 25442 [details]
Xamarin Logs
Comment 5 Jeremy Kolb 2017-10-25 13:30:10 UTC
I did not see this with 15.3.  It is also reported by a number of users on the forums.

Comment 6 Pierce Boggan [MSFT] 2017-10-27 16:44:25 UTC
Hey Jeremy,

Do you happen to have the Visual Studio 2017 Preview [1] installed? I'm using the latest Visual Studio 2017 version 15.5 Preview 2 and am unable to reproduce this issue. We had some fixes land after 15.4 shipped that should fix this issue. Could you give it a try with that build?

[1] https://www.visualstudio.com/vs/preview/

Thanks again,
Pierce Boggan
Comment 7 Jeremy Kolb 2017-10-31 19:21:14 UTC
I have 15.4.2 installed.
Comment 8 Jeremy Kolb 2017-11-29 20:25:52 UTC
This still happens with 15.4.5
Comment 9 Jeremy Kolb 2017-11-29 20:27:52 UTC
Created attachment 25864 [details]