然后如何通过终端打开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.