没有找到ndk-build作为命令 [英] ndk-build not found as a command

查看:239
本文介绍了没有找到ndk-build作为命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Android SDK一段时间刚刚遇到使用NDK的要求

I have been working with Android SDK for a while & just came across an requirement to use the NDK

所以,我下载了适用于Windows的Android NDK。在第一个例子中,当我尝试使用NDK示例

So, I downloaded the Android NDK for Windows. Jumping on the first example, when I am trying to build the library using the process defined in the NDK example

http://developer.android.com/sdk/ndk/overview.html

具体命令/ ndk-build从命令行

Specifically the command /ndk-build from the command line

我收到错误

ndk-构建不被识别为内部或外部命令,可操作的程序或批处理文件

ndk-build is not recognized as an internal or external command, operable program or batch file

我已经在PATH变量中添加了ndk-build的路径,甚至尝试调用命令去文件夹,还是一样的错误

I have added the path for ndk-build in the PATH variable and even tried calling the command going to the folder, still the same error

有人有线索吗?

推荐答案

猜测应该是一个答案而不是评论。

Guess that should have been an answer instead of a comment.

您必须使用Cygwin作为您的shell才能运行ndk-build。

请参阅 http: /www.cygwin.com/

You must use Cygwin as your shell in order to run ndk-build.
See http://www.cygwin.com/

这篇关于没有找到ndk-build作为命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆