可笑的
windows xp,cygwin& ndk为我的项目.我映射了cygwin.batch文件中的所有路径.我正在尝试通过cygwin编译hello-jni.
cygwin.bat的内容
@echo关闭
F: chdir F:\Cygwin\bin bash --login -i set IS_UNIX= set DEV_ROOT=E:/android/android-ndk-r5b/samples/hello-jni set JAVA_HOME=C:/Program Files/Java/jdk1.5.0_13 set CLAsspATH=d:/work_code/android/BlueInput/obj set PATH=E:/android/android-sdk-windows/tools;E:/android/android-ndk-r5b set ANDROID_NDK_ROOT=/cygdrive/e/android/android-ndk-r5b set NDK_PROJECT_PATH=/cygdrive/e/android/android-ndk-r5b/samples/hello-jni
在执行命令./ndk-build时,我收到了错误…
Android NDK: Could not find application project directory! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. cygdrive\e\android\android-ndk-r5b\build\core\build-local.mk:"Android NDK aborting"
解决方法
父文件夹应为“jni”,然后在Android.mk中