Cocos2dxAndroid环境编译出错:Cannot find module with tag 'cocos2dx' in import path

Eclipse环境新建环境出现如下错误:

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.

 

解决方案为:

在项目proj.android\jni\Android.mk(E:\android_tools\cocos2d-2.0-x-2.0.4\cocos2d-2.0-x-2.0.4\cocos2dx\platform\third_party\android\prebuilt\Demo\proj.android\jni\Android.mk)文件中添加路径:

$(call import-add-path, E:\android_tools\cocos2d-2.0-x-2.0.4\cocos2d-2.0-x-2.0.4)\
$(call import-add-path, E:\android_tools\cocos2d-2.0-x-2.0.4\cocos2d-2.0-x-2.0.4\cocos2dx\platform\third_party\android\prebuilt)\


$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)

 
\
posted @ 2013-05-31 13:04  crane13  阅读(562)  评论(0编辑  收藏  举报