Android的命令没有发现甚至PATH集 [英] Android command not found even PATH set

查看:122
本文介绍了Android的命令没有发现甚至PATH集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我使用Ubuntu 12.04。在〜/ .bashrc文件I设置以下的事情

hi i am using ubuntu 12.04. and in ~/.bashrc file I set following things

出口ANDROID_HOME = /家庭/ nilkash /下载/ Android的SDK-Linux的/平台工具

但它仍然给了我的android:命令未找到错误。如何设置路径为Android。需要帮忙。谢谢你。

But still it gives me android: command not found error. how to set path for android. Need Help. Thank you.

推荐答案

要包含在你的PATH环境中打开文本编辑器的SDK的工具和平台工具目录创建或修改〜/ .bash_profile中文件,添加如下一行:

To include the SDK's tools and platform-tools directories in your PATH environment open text editor to create or modify the ~/.bash_profile file, adding below line:

export PATH=${PATH}:/home/nilkash/Downloads/android-sdk-linux/platform-tools:/home/nilkash/Downloads/android-sdk-linux/tools

对于Ubuntu的:

要修改系统的PATH变量,你需要修改.bashrc文件。要做到这一点,在终端,执行以下命令:

To modify the PATH variable of your system, you need to edit your .bashrc file. To do so, in a terminal, execute the following command:

$ nano ~/.bashrc

您现在有终端上的纳米文本编辑器中启用。现在,在该文件的顶部,输入以下内容:

You will now have the Nano text editor enabled on the terminal. Now, at the very top of the file, enter the following:

#AndroidDev PATH
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools

一旦你完成了,preSS CTRL + X,Y,然后按Enter键保存更改并退出纳米文本编辑器。

Once you're finished, press CTRL + X, Y, and then hit Enter to save your changes and exit the Nano text editor.

要重新加载〜/ .bashrc中无需重新登录:

To reload the ~/.bashrc without re log in:

. ~/.bashrc or source ~/.bashrc

参考文献:
- help.ubuntu.com/community/AndroidSDK
- <一个href="http://stackoverflow.com/questions/2518127/how-do-i-reload-bashrc-without-logging-out-and-back-in">How做我重装的.bashrc未注销并重新?

References:
- help.ubuntu.com/community/AndroidSDK
- How do I reload .bashrc without logging out and back in?

这篇关于Android的命令没有发现甚至PATH集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆