VS2015预览:NDK_ROOT未定义 [英] VS2015 preview: NDK_ROOT is not defined
问题描述
我试图安装VS2015预览,看看如何开发一个c ++ android应用程序。
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 separately one by one. It seemed to be OK.
然后我为android创建了一个c ++项目并尝试编译它,但我遇到了一个错误:
Then I created a c++ project for android and tried to compile it, but I got an error:
1>------ Build started: Project: Android1.NativeActivity, Configuration: Debug ARM ------
1> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1> ANT_HOME=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\
1> JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_25"
1> NDK_ROOT=
1>TRACKER : error TRK0005: Failed to locate: "clang.exe". The system cannot find the file specified.
我想问题是 NDK_ROOT
空的,但我已经安装NDK,并在Windows系统环境变量中手动定义 NDK_ROOT
。我想它需要定义在别的地方,也许在注册表中?
I guess the problem is that NDK_ROOT
is empty, but I have installed the NDK and defined NDK_ROOT
manually in windows system environment variables.So I guess it needs to defined somewhere else, maybe in the registry?
成功的VS2015 c ++ android环境的任何人都可以检查 NDK_ROOT
在系统中的位置?
Anyone with a successful VS2015 c++ android environment could check where NDK_ROOT
is defined in your system?
感谢
推荐答案
前往Visual Studio 2015 / Tools / Options / Cross Platform / Android et set folders适用于:Android SDK,Android NDK,Apache Ant,Java JDK。
Go to Visual Studio 2015/Tools/Options/Cross Platform/Android et set folders for : Android SDK, Android NDK, Apache Ant, Java JDK.
这篇关于VS2015预览:NDK_ROOT未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!