机器人:命令在新的终端窗口未找到 [英] android: command not found in new terminal window

查看:184
本文介绍了机器人:命令在新的终端窗口未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有后,我安装了Android环境,并把路径喜欢这里在这个问题上的链接

我写的命令:

  $安卓

Android的SDK管理打开成功,但是当我打开一个新的终端标签,并尝试写同一个命令

  $安卓

它返回的android:找不到命令

我怎样才能解决这个问题?

感谢


解决方案

  

Android的SDK管理打开成功,但是当我打开一个新的终端标签,并尝试写同一个命令


这是你的问题。您的新终端的实例将不会有路径变量设置相同。

在你的主目录,应该有一个名字类似的.bash_profile或.profile文件。在这里,我们会想要么调整所alreadying出口路径的行并追加到它(:/路径/要/ Android版),或创建一个新的行,做的以下内容:

 出口PATH = $ PATH:/路径/要/安卓

现在每次启动终端的新实例时,该行会自动运行,你将有你的路径上的Andr​​oid。

There is a strange problem for me after i installed the android environment and put the paths like here in this question link

I write the command:

$ android

The Android SDK manage opens successfully but when i open a new terminal tab and try to write the same command

$ android

It returns android: command not found

How can i solve this problem ?

Thanks

解决方案

The Android SDK manage opens successfully but when i open a new terminal tab and try to write the same command

This is your issue. Your new instance of terminal won't have the path variable set the same.

In your home directory, there should be a file named something like .bash_profile or .profile. Here we will want to either adjust the line that is alreadying exporting the path and append to it (:/path/to/android), or create a new line that does the following:

export PATH=$PATH:/path/to/android

Now every time you launch a new instance of terminal, that line will be automatically run, and you will have android on your path.

这篇关于机器人:命令在新的终端窗口未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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