无法构建hello-jni

时间:2014-06-04 22:35:39

标签: android android-ndk

在cygwin终端访问/cygwindrive/c/User/Usuario/android-ndk-r9d/samples/hello-jni。尝试使用hello-jni构建ndk-build并显示此错误:

 The system can not find the path specified.
 make.exe: *** [libs/armeabi-v7a/gdbserver] Error 1

我的路径已经配置

C:\oracle\product\11.2.0\dbhome_3\bin;C:\oracle\product\11.2.0\dbhome_1\bin;
C:\a‌​pp\Usuário\product\11.2.0\dbhome_1\bin; C:\Program Files\Common Files\
Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\
Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\‌​System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows 
Live\Shared;C:\Users\Usuário\android-sdks\platform-tools;
C:\Users\Usuário\androi‌​d-sdks\tools;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.6\;
%JAVA_HOME%\bin;C:\Users\Usuário\android-ndk-r9d;C:\cygwin64\bin

1 个答案:

答案 0 :(得分:0)

我有类似的错误。就我而言,我已经下载了windows-x86_64的ndk。要修复错误, HelloJni 中的 Application.mk 应更新如下:

APP_ABI := all - > APP_ABI := all64

检查您下载的ndk版本。您必须启用NDK-LOG才能看到错误路径的ndk调用!