简体   繁体   English

无法找到android.bat

[英]unable to locate android.bat

I am trying to setup a new development enviroment in phonegap. 我正在尝试在phonegap中设置新的开发环境。

Here is how my path variable setup looks in windows: 这是我的路径变量设置在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. 现在,在第三行中,该路径上实际上没有这样的目录,称为tools。 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. 我在整个开发目录中搜索了这个android.bat文件,但找不到它。 Where i am going wrong here? 我在哪里错了?

Android.bat在您的用户目录下:

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. 在Windows Vista或7中,转到“高级系统设置”,否则转到下一步转到“高级”选项卡,然后单击“ Envionment Varibales”按钮。 Select 'Path' in 'System Variables' press 'Edit' and Add 'c:\\\\adt-bundle-windows.......\\sdk\\tools' 在“系统变量”中选择“路径”,然后按“编辑”并添加“ c:\\\\ adt-bundle-windows ....... \\ sdk \\ tools”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM