错误:ANDROID_HOME未设置和"机器人"命令不在PATH。必须满足这些条件中的至少一个 [英] Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions

查看:123
本文介绍了错误:ANDROID_HOME未设置和"机器人"命令不在PATH。必须满足这些条件中的至少一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MAC OS X约塞米蒂我已经做了所有的出口教程设置android_home但非它的工作对我来说

I am MAC OS X Yosemite I have done all the export tutorial to set the android_home but non of it working for me

推荐答案

确保ANDROID_HOME出口,并添加SDK工具目录路径应该是绰绰有余,让你去。

# First, we make sure we have a newline at the end of the .bash_profile
echo >> /Users/abdi/.bash_profile

# We set the ANDROID_HOME value in the .bash_profile
echo "export ANDROID_HOME=/Users/abdi/adt/sdk" >> /Users/abdi/.bash_profile

# We alter the PATH value a bit as well
echo "export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> /Users/abdi/.bash_profile

# We then tell the terminal to update all the things
. /Users/abdi/.bash_profile


使用GUI(大部分)

您也可以使用开-e /Users/abdi/.bash_profile 命令打开文本编辑.bash_profile文件。如果您收到有关丢失文件的一些错误,请尝试运行触摸/Users/abdi/.bash_profile 并重新打开命令。在打开的文件,在末尾加上下面几行。


Using a GUI (mostly)

You can also open the .bash_profile file in TextEdit using the open -e /Users/abdi/.bash_profile command. If you get some errors about missing files, try running touch /Users/abdi/.bash_profile and retry the open command. In the file that opens, add the following lines at the end.

export ANDROID_HOME=/Users/abdi/adt/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

运行。 /Users/abdi/.bash_profile 作为终端版本后,应该让您完全建立起来。

Running . /Users/abdi/.bash_profile as in the terminal version after that should get you fully set up.

这篇关于错误:ANDROID_HOME未设置和"机器人"命令不在PATH。必须满足这些条件中的至少一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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