hello i am in mac system ,and i set the environment variable successly,when i run ./creat-android-project.sh it’s not show
use global definition of NDK_ROOT: /Volumes/Mydata/android-ndk-r7b
use global definition of ANDROID_SDK_ROOT: /Volumes/Mydata/android-sdk
14:cocos2d-2.0-rc2-x-2.0.1 Dell$ ./create-android-project.sh
Input package path. For example: org.cocos2dx.example
com.wulin.test
Now cocos2d-x supports Android 2.2 or upper version
./create-android-project.sh: line 113: /home/laschweinski/android/android-sdk-linux_86/tools/android: No such file or directory
input target id:
i think it ’s not implement these sentence
if [ $NDK_ROOT"aaa" != "aaa" ]; then
echo "use global definition of NDK_ROOT: $NDK_ROOT"
NDK_ROOT_LOCAL=$NDK_ROOT
fi
if [ $ANDROID_SDK_ROOT"aaa" != "aaa" ]; then
echo "use global definition of ANDROID_SDK_ROOT: $ANDROID_SDK_ROOT"
ANDROID_SDK_ROOT_LOCAL=$ANDROID_SDK_ROOT
fi
i donot know what had impacted it
Ok ,it‘s the environment variable problem, i have find and solve it
jie tan wrote:
hello i am in mac system ,and i set the environment variable successly,when i run ./creat-android-project.sh it’s not show
use global definition of NDK_ROOT: /Volumes/Mydata/android-ndk-r7b
use global definition of ANDROID_SDK_ROOT: /Volumes/Mydata/android-sdk
>
>
14:cocos2d-2.0-rc2-x-2.0.1 Dell$ ./create-android-project.sh
Input package path. For example: org.cocos2dx.example
com.wulin.test
Now cocos2d-x supports Android 2.2 or upper version
./create-android-project.sh: line 113: /home/laschweinski/android/android-sdk-linux_86/tools/android: No such file or directory
input target id:
>
i think it ’s not implement these sentence
>
[…]
>
i donot know what had impacted it
I am facing a similar problem. Can you tell me how you fixed it?
jie tan wrote:
14:cocos2d-2.0-rc2-x-2.0.1 Dell$ ./create-android-project.sh
Input package path. For example: org.cocos2dx.example
com.wulin.test
Now cocos2d-x supports Android 2.2 or upper version
./create-android-project.sh: line 113: /home/laschweinski/android/android-sdk-linux_86/tools/android: No such file or directory
It is still using the old values. Try editing the create_android_project.sh
using TextEdit and then change the LOCAL
paths accordingly.
Hey Lance,
The create-android-project-works.sh for me. But when I run build_native.sh, I get an error saying “please define NDK_ROOT”. So I dunno what I am doing wrong?
Set NDK_ROOT so that it points to the Android NDK folder.
If you are running on MAC OSX, open up the terminal and type in:
export NDK_ROOT="<your_android_ndk_folder_here>"
Also, try this one.