简体   繁体   中英

How to set android NDK path ?

15:41:40 **** Clean-only build of configuration Debug for project Diggers ****
Info: Configuration "Debug" uses tool-chain "Cygwin GCC" that is unsupported on this system, attempting to build anyway.
"C:\\NVPACK\\android-ndk-r8\\ndk-build.cmd" clean 
Cannot run program "C:\NVPACK\android-ndk-r8\ndk-build.cmd": Launching failed

Error: Program "C:\NVPACK\android-ndk-r8\ndk-build.cmd" not found in PATH
PATH=[C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.7.0_10\bin;D:\and007\android-sdk-windows\androidndk;;D:\and007\eclipse;]

15:41:40 Build Finished (took 155ms)

You have to first set path to the project folder (the folder which contains jni and src folders) then run the Android-ndk command like

cd path_to_the_your_project

Then run command which contain full path ndl-build file in Android-ndk folder like this /android-ndk-r8c/ndk-build

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM