The following binaries are missing: ndk-build. Please install them

蹲街弑〆低调 提交于 2019-12-01 17:58:17

I am assuming that you have added android-sdk and android-ndk path in your environment. If not then you can add sdk and ndk path using below command.

export PATH=/Users/kaushik512/Library/Android/sdk/platform-tools/:/Users/kaushik512/Library/Android/sdk/tools/:/Users/kaushik512/Downloads/android-ndk-r12b/:/nobackup/local/prog/nasm/bin:$PATH

export PATH=/opt/local/bin/:$PATH
after adding path check using echo $PATH.

Add above in PATH and see if issue resolved.

This is duplicate question and you can find same question here Facing this error The following binaries are missing: ndk-build. Please install them.

I was using Bash on windows and the problem was I was typing into path

/ndk

instead of

/home/{user}/ndk

I found my directory with

echo $PWD

then used

export PATH=$PATH:/home/user/ndk

If you downloaded ndk from: https://developer.android.com/
- Extract the ndk compressed file, you will have a ndk folder, you will see a file named: "ndk-build" inside this folder
- This file is what your compiler did not found before.
And that is why you will need to include the file's path into your path.
To do:
export PATH=$PATH:/path_where_you_store_your_ndk
You can then make a check by typing:
echo $PATH
and make sure the ndk folder now is included in your environment path.
Then retry again with ./prepare.py, it should work.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!