Skip to content Skip to sidebar Skip to footer

Vs2015 Preview: Ndk_root Is Not Defined

I am trying to install VS2015 preview to see how to develop a c++ android app. The online secondary installer is very slow so I cancelled it and tried to install the tools separate

Solution 1:

Go to Visual Studio 2015/Tools/Options/Cross Platform/Android et set folders for : Android SDK, Android NDK, Apache Ant, Java JDK.

Solution 2:

I wanted VS to use my existing Android tools and changing string key 'NDK_HOME' at 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\Setup\VS\SecondaryInstaller\AndroidNDK' did the trick.

Maybe you can add it manually.

Solution 3:

You need to set environment variables "NDKROOT" rather than "NDK_ROOT",and the variables's value is your real ndk path

Solution 4:

If you don't have Android tools installed already, go to Programs and Features and find Microsoft Visual Studio 2015 Preview Secondary Installer, select it and click Change. When it brings up a list of secondary tools to install, there's no need to change the defaults that are selected. Just click Next and then Install.

After you do that your project will find clang and build correctly.

Post a Comment for "Vs2015 Preview: Ndk_root Is Not Defined"