gpt4 book ai didi

android - 使用 Eclipse mac 找不到 ndk-build 和命令

转载 作者:行者123 更新时间:2023-11-29 15:50:47 24 4
gpt4 key购买 nike

我正在使用 Eclipse for android-ndk 在 mac 中开发 android 应用程序。我已经在 Eclipse 中给出了 NDK 路径。最后,当我给出此命令以使用 android-ndk 构建我的应用程序时,出现以下错误:

命令:ndk-build

ndk-build-bash: ndk-build: command not found

enter image description here

我的终端命令:

Muhammads-MacBook-Pro:~ UsmanKhan$ cd downloads
Muhammads-MacBook-Pro:downloads UsmanKhan$ cd 26thMarch2014
Muhammads-MacBook-Pro:26thMarch2014 UsmanKhan$ cd a2zLatest
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ls
AndroidManifest.xml gen proguard-project.txt
Thumbs.db ic_launcher-web.png project.properties
assets libs res
bin lint.xml src
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ls bin/classes/
com
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ls bin/classes/com/testing/ndk
BuildConfig.class R$dimen.class R$string.class
FibLib.class R$drawable.class R$style.class
MainActivity.class R$id.class R.class
R$attr.class R$layout.class
R$color.class R$menu.class
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ mkdir jni
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ javah -jni -classpath bin /classes/ -d jni/ com.testing.ndk.FibLib
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ls jni
com_testing_ndk_FibLib.h
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ls jni
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ javah -jni -classpath bin/classes/ -d jni/ com.testing.ndk.FibLib
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ javah -jni -classpath bin/classes/ -d jni/ com.testing.ndk.FibLib
Muhammads-MacBook-Pro:a2zLatest UsmanKhan$ ndk-build
-bash: ndk: command not found

最后我收到了 ndk-build 错误。

最佳答案

代替 ndk-build 命令,只需在终端中键入 ~/Desktop/AndroidNDK/android-ndk-r10d/ndk-build

关于android - 使用 Eclipse mac 找不到 ndk-build 和命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30137752/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com