找不到作为命令的 ndk-build

2023-01-12Java开发问题
157

本文介绍了找不到作为命令的 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-build 不是内部或外部命令、可运行程序或批处理文件

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

如何在java中找出依赖于语言环境的文本方向?
How to find out locale-dependent text orientation in java?(如何在java中找出依赖于语言环境的文本方向?)...
2024-08-25 Java开发问题
24

在属性文件中查找重复键和值的工具
Tool to find duplicate keys and value in properties file(在属性文件中查找重复键和值的工具)...
2024-08-25 Java开发问题
14

如何在 Java 应用程序中处理多种语言?
How to handle multiple languages in Java apps?(如何在 Java 应用程序中处理多种语言?)...
2024-08-25 Java开发问题
11

将 Java Swing 桌面应用程序国际化的最佳实践是什么?
What are the best practices for internationalizing a Java Swing desktop application?(将 Java Swing 桌面应用程序国际化的最佳实践是什么?)...
2024-08-25 Java开发问题
15