I created a project using cocos2d-x 3.6 and try to build android version using eclipse, but it shows errors:
**** Build of configuration Release for project MyGame1 ****
python /Users/aronho/Desktop/MyGame1/proj.android/build_native.py -b release all
sh: cocos: command not found
Please use cocos console instead.
Traceback (most recent call last):
File "/Users/aronho/Desktop/MyGame1/proj.android/build_native.py", line 43, in <module>
build(opts.build_mode)
File "/Users/aronho/Desktop/MyGame1/proj.android/build_native.py", line 28, in build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ /Users/aronho/Desktop/MyGame1/proj.android/../ ] fails!
**** Build Finished ****
I saw some solutions before, also some environment variables like ANDROID_SDK_ROOT, NDK_ROOT,… are in .profile, I am quite sure it is not caused by missing environment variables (cocos command is ok in terminal), but the problem still exists (I also add the variables again in eclipse, but the problem is not solved), is there any solution that can solve the problem without editing build_native.py?