Android NDK编译时出现的问题以及解决办法

Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.

/e/android-ndk-r8e/build/core/build-local.mk:130: *** Android NDK: Aborting    .  Stop.


1. 没有建立jni目录;

2. 检查jni目录下的Android.mk,是否拼写正确,注意'A'一定要大写


./install: line 1: Netembryo: command not found
./install: line 3: +: command not found
./install: line 5: syntax error near unexpected token `('
./install: line 5: `- a full Posix compatible system (suggested any linux distribution)'
make.exe: *** [/home/netembryo-0.1.1/libs/armeabi/libnetembryo.a] Error 2


检查不要在jni的目录里面执行$NDK_ROOT/ndk-build, $(PROJECT_PATH)执行, 不要在$(PROJECT_PATH)/jni中执行.

你可能感兴趣的:(Android)