Reputation: 741
I'm new to cocos2d-X.I'm trying to set up cocos2d-x for android and I exactly followed below video tutorial
I failed the steps in terminal with problem (python setup.py command result is not as expected).
For example when I begin to setup in terminal I get the following error.
->Please enter the path of NDK_ROOT (or press Enter to skip):/Users/apple/Documents/Development/Cosos2d-x/android-ndk-r9d
->Error: "/Users/apple/Documents/Development/Cosos2d-x/android-ndk-r9d " is not a valid path of NDK_ROOT. Ignoring it.
->Check environment variable ANDROID_SDK_ROOT
->Search for environment variable ANDROID_SDK_ROOT...
->ANDROID_SDK_ROOT not found
->Search for command android in system...
->Command android not found
The same above error happening for setup path ANDROID_SDK_ROOT and ANT_ROOT.
How can I fix the problem? Thanks for get me out.
I'm working on
Upvotes: 0
Views: 3782
Reputation: 111
Cocos script uses os.path.join($your_path, $some_extra_file)
, so you have to add slash /
at the end:
/Users/apple/Documents/Development/Cosos2d-x/android-ndk-r9d/
Upvotes: 1
Reputation: 489
Do you copy the path to the terminal?
If so, try to delete the trailing whitespace, it will solve the problem.
Upvotes: 3