启动Android SDK管理器-工具目录不存在?苹果电脑 [英] Launch Android SDK manager - Tools directory doesn't exist? Mac

查看:83
本文介绍了启动Android SDK管理器-工具目录不存在?苹果电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac电脑上,到目前为止,我认为我已经完成了所有操作.请遵循以下指示: http://developer.android.com/sdk/installing/adding-packages.html

I'm on mac, I think I've done everything right so far. following these instructions: http://developer.android.com/sdk/installing/adding-packages.html

它表示导航到终端中的tools/目录.这是我的步骤.

it says to navigate to tools/ directory in terminal. Here are my steps.

  1. 打开终端

  1. Open terminal

cd应用程序 结果是:没有这样的文件或目录

cd Applications result is: No such file or directory

我的工具目录的路径如下

path to my tools directory is as follows

Applications->adt-bundle-mac-x86_64-20130219  ->SDK -> tools

我尝试将文件夹,工具文件夹和adt-bundle都放到桌面上,因为我可以将目录更改为桌面,当我在终端输入ls时,我会看到我的工具文件夹和adt-bundle在那儿

I tried putting my folder onto my desktop, both the tools folder, and my adt-bundle because I could change directory to my desktop, and when I enter ls to the terminal I see my tools folder, and my adt-bundle is there,

但是问题是我尝试输入时

but the problem is when I try to enter

cd工具

cd adt-bundle(等...)

cd adt-bundle(etc...)

它说它不是目录.

我该怎么办?

推荐答案

我最近遇到了这个问题,并认为我会在此发布消息以进行澄清或仍然遇到该问题的任何人.

I recently encountered this issue, and figured I'd post on this for clarification or for anyone still encountering it.

似乎您必须位于/adt-bundle-mac-VERSION/sdk目录的根目录才能执行"android"命令. 我通常进入目录,直到找到命令的位置,但是在这种情况下,我遇到了与原始海报相同的问题.

It seems you have to be at the root of the /adt-bundle-mac-VERSION/sdkdirectory in order to execute the "android" command. I normally cd into the directory until I reach the location of the command, but in this case I encountered the same issue as the original poster.

您必须使用Tab键输入android命令... 即...

You must use the tab key to the android command... ie...

找到安装位置/adt-bundle-mac-x86_64-20131030/sdk按下TAB键/tools按下TAB键/android

locate your installation /adt-bundle-mac-x86_64-20131030/sdk hit TAB key /tools hit TAB key /android

而不是cd adt-bundle-mac-x86_64-20131030/ cd/sdk cd/tools android

如果操作正确,SDK管理器应为您启动.

If done properly the SDK manager should launch for you.

希望这对外面的人都有帮助.

Hope this helps anybody out there.

这篇关于启动Android SDK管理器-工具目录不存在?苹果电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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