creating new android project

creating new android project
0.0 0


i’m trying to setup the new release of cocos2dx and i’m having some problems.
what i get from create-android-project.bat :
my create-android-project.bat :
my :
the directories seem ok, not sure about /home/…, assuming that /home/ points to my C: disk.


What is the problem?


/cygdrive/c/cocos2d-x/ line 6: $’‘: command not found/cygdrive/c/cocos2d-x/ line 10: $’‘: command not found/cygdrive/c/cocos2d-x/ line 43: syntax error near unexpected token `$’{\r’’’cygdrive/c/cocos2d-x/ line 43: `check_path(){

This is the error i get in create-android. bat but i cant even find the {\r in my create-android. sh


What’s your environment?
windows, mac or linux?


windows with cygwin


Did you modify file format of
It seems that the format is changed to DOS format.


i edited them with wordpad and it probably changed the file format, now i did it with notepad and i get a different error :
/cygdrive/c/cocos2dxnew/template/android/ line 60: /cygdrive/c/coc
os2dxnew/gaem/android/jni/helloworld/ Permission denied
/cygdrive/c/cocos2dxnew/template/android/ line 61: /cygdrive/c/coc
os2dxnew/gaem/android/jni/ Permission denied


i tried running create-android-project.bat in administrator mode but it runs it in another folder then, so i launch command prompt in administrator mode and run create-android-project.bat from there and it seems to work but i’m not sure :

Please input target id:1
Create android project
Created project directory: C:2dxnew\gam
Created directory C:2dxnew\gam\src\org\cocos2dx\gam
Added file C:2dxnew\gam\src\org\cocos2dx\gam\
Created directory C:2dxnew\gam\res
Created directory C:2dxnew\gam\bin
Created directory C:2dxnew\gam\libs
Created directory C:2dxnew\gam\res\values
Added file C:2dxnew\gam\res\values\strings.xml
Created directory C:2dxnew\gam\res\layout
Added file C:2dxnew\gam\res\layout\main.xml
Added file C:2dxnew\gam\AndroidManifest.xml
Added file C:2dxnew\gam\build.xml
Added file C:2dxnew\gam\proguard.cfg
Press any key to continue . . .