1

After creating an initial cocos2d Lua project, but get the following bug error.

Error info

Android NDK: /Users/beck/Documents/Cocos2d-x/Hello_CocosLua/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk: Cannot find module with tag 'scripting/lua-bindings/proj.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:         
/Users/beck/Documents/Cocos2d-x/Hello_CocosLua/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk:25: *** Android NDK: Aborting.    .  Stop.
Ken Y-N
  • 14,644
  • 21
  • 71
  • 114
Beckon
  • 128
  • 2
  • 15
  • 1
    So, are you sure? It looks to me as if it isn't. – Ken Y-N Sep 07 '17 at 05:52
  • Possible duplicate of [Set NDK\_MODULE\_PATH for cocos2dx Android](https://stackoverflow.com/questions/20045033/set-ndk-module-path-for-cocos2dx-android) – Ken Y-N Sep 07 '17 at 05:54

2 Answers2

2

These error occurs when the main core version and extension version doesn't match. Don't forget to download the external extensions by executing the python script; download-deps.py

0

Fix by add the following into Android.mk.

Aiming to import the individual path "cocos2d-x", "cocos2d-x/external", "cocos2d-x/cocos", rightly.

$(call import-add-path,$(LOCAL_PATH)/../../../../cocos2d-x)

$(call import-add-path,$(LOCAL_PATH)/../../../../cocos2d-x/external)

$(call import-add-path,$(LOCAL_PATH)/../../../../cocos2d-x/cocos)

Beckon
  • 128
  • 2
  • 15