在Window Eclipse中编译cocos2dx android demo时报如下错误
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.
解决办法如下:
jni\Android.mk文件中添加路径:
$(call import-add-path, E:\WorkSpace\Edwin\cocos2d-x-2.2.2\cocos2d-x-2.2.2)\
$(call import-add-path, E:\WorkSpace\Edwin\cocos2d-x-2.2.2\cocos2d-x-2.2.2\cocos2dx\platform\third_party\android\prebuilt)\
备注:E:\WorkSpace\Edwin\cocos2d-x-2.2.2\cocos2d-x-2.2.2 是cocos2dx的工作目录