How to move android cocos2d-x project out of cocos2dx_root directory

Dear friends,

I just have a problem with the project directory, it happend when I move the project folder to my desktop.

  1. I tried to run build_native.sh, the script could not find the COCOS2DX_ROOT path. so I comment the statement COCOS2DX_ROOT=“${DIR}/…/…”<<— this is solved.
  2. Then I run “ant debug” to generate the apk package.
    BUILD FAILED /Users/Gao/Applications/android-sdk-macosx/tools/ant/build.xml:571: ../../cocos2dx/platform/android/java resolve to a path with no project.properties file for project /Users/Gao/Desktop/WLDEMO/proj.android
  3. After I change the project.properties from “android.library.reference.1=…/…/cocos2dx/platform/android/java” to
    COCOS2DX_ROOT=/Users/Gao/Applications/cocos2d-x
    android.library.reference.1=${COCOS2DX_ROOT}/cocos2dx/platform/android/java

A new error I dont know how to fix.
BUILD FAILED /Users/Gao/Applications/android-sdk-macosx/tools/ant/build.xml:571: /Users/Gao/Applications/cocos2d-x/cocos2dx/platform/android/java resolve to a path with no project.properties file for project /Users/Gao/Desktop/WLDEMO/proj.android

It looks like the path is still wrong. Anyone know about how to move the project out of the cocos2dx directory?

Thanks in advance.