Android.mk:44: *** commands commence before first target. Stop.
在Android.mk中检查有没有注释,空行或者空格 Check there are no comments,no space ,no empty line in the src includes of Android.mk
错误3
$ ndk-build clean
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/cygdrive/c/android-ndk-r4b/build/core/build-local.mk:85: *** Android NDK: Aborting . Stop.
Fix: include Android.mk location inside global application.mk and Android.mk Run the command from the parent directory with app.mk and and.mk resides
错误4
Please define ANDROID_NDK_ROOT to point to the root of your Android NDK installation.
Use case while executing shell script xxx-desktop:~/bin/u/android-ndk-r5/build/tools$ ./rebuild-all-prebuilt.sh
Please define ANDROID_NDK_ROOT to point to the root of your Android NDK installation.
// Run the script inside NDK root directory like shown below xxx-desktop:~/bin/u/android-ndk-r5/build/tools$ cd .. xxx-desktop:~/bin/u/android-ndk-r5/build$ cd .. xxxx-desktop:~/bin/u/android-ndk-r5$ ./build/tools/rebuild-all-prebuilt.sh
错误5
Android NDK: jni/Android.mk: Cannot find module with tag 'cocos2dx' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
jni/Android.mk:19: *** Android NDK: Aborting. . Stop.