如何在终端命令时存储 adb 路径供以后使用?
How to store adb path for later use while terminal command?
每次打开终端(重启 Android Studio 后)我都使用命令提示符 运行 和调试 application.But 终端路径就像
E:\tushar\androidStudioWorkspace\Myapp\Myapp>
我必须手动导航到平台工具 folder.I 希望终端指针位于
F:\android\newPath\sdk\platform-tools>
更新您的环境变量路径:
F:\android\newPath\sdk\platform-tools\; F:\android\newPath\sdk\tools\
如何编辑系统变量
1. Click Start (Orb) menu button.
2. Right click on Computer icon.
3. Click on Properties. This will bring up System window in Control Panel.
4. Click on Advanced System Settings on the left. This will bring up the System Properties window with Advanced tab selected.
5. Click on Environment Variables button on the bottom of the dialog. This brings up the Environment Variables dialog.
6. In the System Variables section, scroll down till you see Path.
7. Click on Path to select it, then the Edit button. This will bring up the Edit System Variable dialog.
8. While the Variable value field is selected, press the End key on your keyboard to go to the right end of the line, or use the arrow keys to move the marker to the end.
9. Type in PATH and click OK.
就是这样!!
每次打开终端(重启 Android Studio 后)我都使用命令提示符 运行 和调试 application.But 终端路径就像
E:\tushar\androidStudioWorkspace\Myapp\Myapp>
我必须手动导航到平台工具 folder.I 希望终端指针位于
F:\android\newPath\sdk\platform-tools>
更新您的环境变量路径:
F:\android\newPath\sdk\platform-tools\; F:\android\newPath\sdk\tools\
如何编辑系统变量
1. Click Start (Orb) menu button.
2. Right click on Computer icon.
3. Click on Properties. This will bring up System window in Control Panel.
4. Click on Advanced System Settings on the left. This will bring up the System Properties window with Advanced tab selected.
5. Click on Environment Variables button on the bottom of the dialog. This brings up the Environment Variables dialog.
6. In the System Variables section, scroll down till you see Path.
7. Click on Path to select it, then the Edit button. This will bring up the Edit System Variable dialog.
8. While the Variable value field is selected, press the End key on your keyboard to go to the right end of the line, or use the arrow keys to move the marker to the end.
9. Type in PATH and click OK.
就是这样!!