“cannot find module with tag 'CocosDenshion/android' in import path” error in cocos2dx app

后端 未结 7 1779
青春惊慌失措
青春惊慌失措 2021-02-18 18:35

I am trying to compile Android native application developed on cocos2d-x. When i Try to debug my application i get the following error.

Android NDK: jni/Android.         


        
7条回答
  •  我在风中等你
    2021-02-18 18:44

    You have to change this line in "build_native.sh"

    COCOS2DX_ROOT="$DIR/../.." 
    

    depending on the location of your android project based on cocos2d-x root. For example if your your android project path is : C:\cocos2d-x\Projects\ProjectName\proj.android then

    COCOS2DX_ROOT="$DIR/../../.." 
    

    (you have to go three steps back to get to the root of cocos2d-x)

    but if your project path is C:\cocos2d-x\ProjectName\proj.android then

    COCOS2DX_ROOT="$DIR/../../.." 
    

    (you have to go two steps back to get to the root of cocos2d-x)

    hope that helps

提交回复
热议问题