NDK not found in the specified location

After installing Xamarin Studio, I went over to the settings to make sure that the Android SDK, JDK, and NDK were found. The first two were actually, but the NDK was not found. He asked me to indicate the location, and I indicated the location (when I clicked "view", he took me to the folder where the NDK actually was). However, he still does not recognize it and says that the NDK was not found at the specified location.

+5
source share
6 answers

When using Xamarin Studio, if you receive error message XA5101 ("Missing NDK toolchains directory"), you will need to download Android NDK separately from:

http://developer.android.com/tools/sdk/ndk/index.html

Then it should unzip the downloaded file and open the Xamarin IDE and go to the following menu location:

Tools ==> Options ==> SDK Locations ==> Android 

Select the location of the unzipped folder.

Then close the IDE and open it (force close / restart if it is saved in the task / process manager).

Alternative option:

Non-detection of NDKs may also be triggered due to inconsistent configuration for AVD Manager. More specifically, Xamarin can create devices and AVDs in your% USERPROFILE% .android, while emulating debugger / runtime EXPECTS AVD in the ADT directory. You may try to copy files and directories associated with ZAVD2 to% USERPROFILE% .android \ avd and see if this fixes the problem.

===== Initial post ======

[In case of an eclipse] I think the answer is here: fooobar.com/questions/186891 / ...

//goto Preference → Android → NDK and select the ndk location

// If your NDK location is already set, the constructor in the toolchain editor may be wrong. Go to project properties, C/C++ Build | Tool Chain Editor C/C++ Build | Tool Chain Editor and select Android Builder as the current builder.

// in your .bashsrc file, you may also need to add the env variable:

 NDK_HOME=/opt/android-ndk-r8 export NDK_HOME 
+2
source

Ok, so I found the problem. There was no ndk-stack.exe file in my NDK location. I thought I would uninstall / remove everything related to the NDK and reinstall. This is when I came across ndk-build.cmd, I just thought that he clicked it, since it was cmd, and he created the ndk-stack.exe file in a place on my computer that was found by both Xamarin and Visual Studio (later noticed that even VS could not find the NDK, but after cmd, he did). Thanks for the help.

+1
source

If it catches someone else, I had this problem, but it was because I checked "Enable AOT (Experimental)" in the settings for generating Android code. This option is disabled by default, so probably it should have left just one.

+1
source

Open ndk-stack.cmd with notepad to see the full path to ndk-stack.exe

You can find this file in "install-path \ android-ndk \ prebuilt \ windows \ bin \ ndk-stack.exe"

0
source

I recommend downloading the NDK that matches your version of Visual Studio, for example, if you have VS 2015, download the NDK 2015 or 2016, it really helped, because the NDK version 2019 did not have this EXE file, but it was in the NDK 2016

0
source

Change Android min SDK version 4.2 or higher (API LEVEL 17+)

-1
source

All Articles