Android NDK系统找不到指定的路径 [英] Android NDK The system cannot find the path specified
问题描述
这是这个问题的后续问题:
This is a follow up question to this question:
我得到了同样的问题 - 我提取了NDK文件夹,在Eclipse菜单中设置路径:Window-> Preferences-> Android-> NDK,但是我收到错误系统找不到指定的路径。当然路径确实存在。我尝试使用一个构建器,但是它给了我相同的结果。
I got the same problem - I have extracted the NDK folder, set the path in Eclipse menu: Window->Preferences->Android->NDK, but I keep getting the error "The system cannot find the path specified ". Of course the path does exist. I tried using a builder but it gave me the same result for that new builder.
即使我通过CMD去NDK文件夹,并尝试直接运行,cmd提示我同样的消息系统找不到指定的路径。但是它在那里...
Even if I go to the NDK folder via CMD and try to run it directly, cmd prompts me the same message "The system cannot find the path specified". But it's right there...
我可以做什么?
推荐答案
p>我终于弄清楚了这个问题。
I have finally figured out the problem.
消息系统找不到指定的路径不是指ndk_build.cmd文件本身。当检出文件的内容时,我发现它实际上是一个脚本,它尝试在NDK文件夹中找到缺少的目录。为什么会失踪?因为事实证明是在不同的计算机上使用的64位操作系统的NDK,这是一个32位操作系统。
The message "The system cannot find the path specified" does not refer to ndk_build.cmd file itself. When checking out the content of the file, I discovered it's actually a script which is trying to find a directory inside the NDK folder which was missing. And why was it missing? Since it turned out to be an NDK for 64 bit operating system which I used on a different computer and this was a 32 bit operating system.
下载了一个32位版本的NDK,并结合我在链接的问题中为项目定义一个构建器的建议,它终于奏效了。
After downloading a 32 bit version of NDK and combining with the suggestion in my linked question of defining a builder for the project, it finally worked.
这篇关于Android NDK系统找不到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!