简体   繁体   English

无法在终端上使用“ android”命令打开Android SDK Manager

[英]Can't Open Android SDK Manager using `android` Command on Terminal

I'm unable to open the Android SDK Manager using the android command on terminal. 我无法在终端上使用android命令打开Android SDK Manager。

I am following https://facebook.github.io/react-native/docs/getting-started.html 我正在关注https://facebook.github.io/react-native/docs/getting-started.html

And I download and installed Android Studio and Installed HAXM and AVD with the given steps. 然后按照给定的步骤下载并安装了Android Studio,并安装了HAXM和AVD。

Now I need to 现在我需要

  1. Install the Android 6.0 (Marshmallow) SDK 安装Android 6.0(Marshmallow)SDK

However, I am not seeing the same screen as the documentation when accessing the SDK manager via Android studio. 但是,通过Android Studio访问SDK管理器时,没有看到与文档相同的屏幕。

"The SDK Manager can also be found within the Android Studio "Preferences" menu, under Appearance & Behavior → System Settings → Android SDK." “ SDK管理器也可以在Android Studio的“首选项”菜单中的外观和行为→系统设置→Android SDK下找到。”

So I am using the Android command on terminal to open the SDK Manager; 所以我在终端上使用Android命令打开SDK Manager; however, I'm receiving the following error. 但是,我收到以下错误。

/usr/local/bin/android: line 3: /usr/local/Cellar/android-sdk/24.3.4/tools/android: No such file or directory
/usr/local/bin/android: line 3: exec: /usr/local/Cellar/android-sdk/24.3.4/tools/android: cannot execute: No such file or directory

I'm curious as to why is this happening. 我很好奇为什么会这样。 How can it be resolved? 如何解决?

确保在每个屏幕中都选择了“显示软件包详细信息”

insure that show Package Details is selected in every screen 确保在每个屏幕中都选择了“显示软件包详细信息”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM