android.bat is not recognized as an internal or external command

0

I have setup up the environment for cocos2d-x. I have edited the create-android-project.bat file according to my Cygwin, SDK and NDK locations. Now when I try to create a new cocos2d-x project double clicking on the create-android-project.bat file, I get errors. Please help. I am in a mess.

enter image description here

CodeWalker

Posted 2014-05-20T12:19:28.567

Reputation: 111

Did you create a Android.bat? This seems to a problem with a script where its trying to call a file in one location when its actually in another. – Ramhound – 2014-05-20T12:30:32.283

Nope, it is the same android.bat that exists in \android\android-sdk. – CodeWalker – 2014-05-20T12:35:27.887

Supply us the contents of all script files. You have an error in one of them. – Ramhound – 2014-05-20T12:52:21.127

Here are the scripts : https://app.box.com/s/0kgmgksud9l374i1dyw5

– CodeWalker – 2014-05-20T12:56:50.787

1Feel free to update the question's contents to include the scripts in question. – Ramhound – 2014-05-20T13:02:08.707

Edit your script and get rid of the extra backslash. – Ƭᴇcʜιᴇ007 – 2014-05-20T14:17:35.230

It's not the backslash that's causing the issue, as it should work even with the backslashes. Dumb question, does the bat file exist in "%_ANDROIDTOOLS%"? Also, looks like the script is in unix format, I don't know if that can cause an issue like this – Alex – 2014-05-21T00:38:53.113

No answers