一、
Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' 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.
解决方案:在项目 proj.android\jni\Android.mk 文件中添加路径:
$(call import-add-path, E:\Research\cocos2d\cocos2d-2.0-x-2.0.2)\
$(call import-add-path, E:\Research\cocos2d\cocos2d-2.0-x-2.0.2\cocos2dx\platform\third_party\android\prebuilt)\
$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)
二、
/usr/bin/bash: /ndk-build:no such file or directory.
可能是eclipse没用设置ndk路径
三、没用akp文件(不一定能解决问题)
在eclipse的Preferences -> Android -> Build中有一项“Skip packaging and dexing until export or launch....”,这个选项默认是被勾选的,晕!这个选项的意思是“跳过packing和dexing,直到export或者launch...”,问题找到了,去掉这个选项即可解决问题。
四、NDK_ROOT not defined. Please define NDK_ROOT in your environment解决方案
在eclipse的Preferences -> C/C++ -> Build->Environment 添加 variable为NDK_ROOT value 为NDK路径