如何通过终端打开Android SDK Manager? [英] How to open then the Android SDK Manager through the terminal?
问题描述
我已将 CD 放入终端中的 android 工具目录中.我尝试输入android"并按回车键,我也尝试输入android sdk"并按回车键,但 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屋!