然后如何通过终端打开Android SDK Manager? [英] How to open then the Android SDK Manager through the terminal?

查看:76
本文介绍了然后如何通过终端打开Android SDK Manager?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将CD放入终端中的android tools目录中.我尝试键入'android'并按Enter,也尝试键入'android sdk'并按Enter,但SDK管理器无法显示.

I have CD'd into my android tools directory in the terminal. I tried typing 'android' and hitting enter and I also tried typing 'android sdk' and hitting enter but the sdk manager would not come up.

是否有任何解决方案或建议可以帮助我了解自己在做什么错?

Any solutions or advice to help me understand what I'm doing wrong?

推荐答案

tools 目录之外(显然,您需要进行更改以适合您的路径口味):

From outside the tools directory (obviously, you need to change to suit your path taste):

$ sudo /opt/android-sdk-macosx/tools/android

tools 目录中(注意前导点和斜杠):

From within the tools directory (note the leading dot and slash):

$ cd /opt/android-sdk-macosx/tools/
$ sudo ./android 


相关:您的环境中应同时设置 ANDROID_SDK_ROOT ANDROID_NDK_ROOT . ANDROID_SDK_ROOT 由(现已弃用) ddms 程序使用. ANDROID_NDK_ROOT 被各种NDK工具使用.请参阅Android NDK用户列表上的推荐的NDK目录?.


Related: you should have both ANDROID_SDK_ROOT and ANDROID_NDK_ROOT set in your environment. ANDROID_SDK_ROOT is used by the (now deprecated) ddms program. ANDROID_NDK_ROOT is used by various NDK tools. See Recommended NDK Directory? on the Android NDK user list.

这篇关于然后如何通过终端打开Android SDK Manager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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