Cocos2dx Android環境編譯出錯:Ca…

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)


\
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章