Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to locate android.bat

I am trying to setup a new development enviroment in phonegap.

Here is how my path variable setup looks in windows:

C:\Users\Mrinal\AppData\Roaming\npm;
C:\android\development\sdk\platform-tools;
C:\android\development\sdk\tools;
C:\Program Files\Java\jdk1.7.0_17\bin;
C:\ant\bin

Now in the third line, actually there is no such directory called tools at that path. Rest works.

Now when i do this in command prompt:

c:\android\phonegap\lib\android\bin>create

I get this

Cannot locate android.bat using the PATH environment variable.
Retry after adding directory containing android.bat to the PATH variable.
Remember to open a new command window after updating the PATH variable.
Visit http://developer.android.com if you need to install the Android SDK.

I made a search in the whole development directory for this android.bat file but can't find it. Where i am going wrong here?

like image 978
beNerd Avatar asked May 28 '13 10:05

beNerd


People also ask

How do I fix Android SDK not found?

To solve this Error: Make sure you have installed "Android SDK Platform-Tools". When you install "Android SDK Platform-Tools", it will fix Android SDK file not found: adb error.

Can not find Android SDK folder?

If you have downloaded the AS + SDK bundle: If it is missing at this location, one of the following reasons apply: you have chosen a custom location, you missed to install the SDK at all, or (unlikely) they have changed the default install location.

How do I reinstall Android SDK?

Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.


2 Answers

Android.bat is under your user directory:

C:\Users\<Your_UserName>\AppData\Local\Android\android-sdk\tools
like image 146
Kristian Avatar answered Sep 21 '22 22:09

Kristian


Right click on My Computers and open Properties. In Windows Vista or 7 Go to Advanced System Settings Else go to next step Go To Advanced Tab and click on Envionment Varibales button. Select 'Path' in 'System Variables' press 'Edit' and Add 'c:\\adt-bundle-windows.......\sdk\tools'

like image 21
zapata Avatar answered Sep 18 '22 22:09

zapata