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?
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.
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.
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.
Android.bat is under your user directory:
C:\Users\<Your_UserName>\AppData\Local\Android\android-sdk\tools
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With