Beckon
Beckon

Reputation: 138

Are you sure your NDK_MODULE_PATH variable is properly defined?

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.

Upvotes: 1

Views: 5498

Answers (2)

user2617363
user2617363

Reputation: 61

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

Upvotes: 2

Beckon
Beckon

Reputation: 138

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)

Upvotes: 0

Related Questions