How to open then the Android SDK Manager through the terminal? [duplicate]

末鹿安然 提交于 2019-12-19 05:37:05

问题


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?


回答1:


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

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

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

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

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.



来源:https://stackoverflow.com/questions/24372664/how-to-open-then-the-android-sdk-manager-through-the-terminal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!