2

I installed Visual Studio 2017. In the Installer menu, I've installed Xamarin and Visual C#. However, when I created a new project, went to Tools > Options > Xamarin , I saw that the android-ndk textbox is empty whereas the others are not.

I've installed Visual Studio on this path: D:\Program Files\Visual Studio. But I don't know if it will put the installation of Xamarin to the D:\

My question is where is android-ndk?

Thanks

Marc2001
  • 281
  • 1
  • 3
  • 12
  • https://stackoverflow.com/questions/27522184/android-ndk-default-location and https://www.google.com/search?q=Android+-+Where+is+android-ndk+located?+site:stackoverflow.com&client=ubuntu&hs=IX1&channel=fs&sa=X&ved=2ahUKEwjC2MjvkrfdAhUGTbwKHfJAC24QrQIoBDALegQIBRAM&biw=1320&bih=666 – AskNilesh Sep 13 '18 at 04:31
  • Possible duplicate of [Android NDK Default location](https://stackoverflow.com/questions/27522184/android-ndk-default-location) –  Sep 14 '18 at 01:16

1 Answers1

15

For Visual Studio, the default NDK location is:

C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b

For Android Studio, the default NDK location is:

C:\Users\yourusername\AppData\Local\Android\Sdk\ndk-bundle

But by default, Visual Studio won't download Android NDK. So if you need download Android NDK, you could go to VS Tools tab:

Tools > Android > Open Android SDK Manager > select Tools > Check NDK > Click Apply Changes

enter image description here

York Shen
  • 9,014
  • 1
  • 16
  • 40
  • 3
    FWIW, I've never been able to successfully download NDK via Visual Studio's version of Android SDK manager (after downloading all the bytes, get "Download Failed".) Just tried again today on a new PC with a fresh install of VS 2017 & Xamarin Android. Anyway, can download manually at https://developer.android.com/ndk/downloads/ - Then set NDK location to wherever you install (unzip) that download, via VS Tools/ Options/ Xamarin/ Android NDK Location. – ToolmakerSteve Oct 15 '18 at 00:44
  • In Visual Studio, NDK is installed by Visual Studio Installer into %PROGRAMDATA%/Microsoft/AndroidNDK/ – Alexandr Zarubkin Dec 13 '18 at 20:09