简体   繁体   English

缺少 Android Studio SDK 管理器

[英]Android studio SDK manager is missing

I am following this ionic tutorial and having some trouble with setting up the SDK in Android Studio in order to test my ionic project.我正在关注这个 ionic 教程,但在 Android Studio 中设置 SDK 以测试我的 ionic 项目时遇到了一些麻烦。 I am looking for the SDK manager however it seems to be missing.我正在寻找 SDK 管理器,但它似乎丢失了。 When I select the configure drop down menu there should be an SDK manager option however it is absent (as you can see in the following image):当我选择配置下拉菜单时,应该有一个SDK manager选项,但是它不存在(如下图所示):

配置

Likewise when I select settings > Appearance and Behaviour > System settings , Android SDK should be an option here.同样,当我选择settings > Appearance and Behaviour > System settingsAndroid SDK应该是这里的一个选项。

设置

I tried selecting project structure and adding a new SDK like this answer however Android SDK was not an option as you can see in the following image.我尝试选择项目结构并添加一个像这个答案一样的新 SDK 但是Android SDK不是一个选项,如下图所示。

在此处输入图片说明

Note: I had installed Android Studio a few years ago and it was working but uninstalled it again.注意:我几年前安装了 Android Studio,它可以工作,但又卸载了。 I've tried to make sure everything was cleaned out before installing it again (ie deleted the AndroidStudioProjects folder that was left) however I'm not sure what else to look for.我试图确保在再次安装之前清除所有内容(即删除了剩下的 AndroidStudioProjects 文件夹),但是我不确定还要寻找什么。

Also If there is another way I can test my ionic build (as opposed to downloading android studio) then I would be grateful if you could advise.另外,如果有另一种方法可以测试我的 ionic 构建(而不是下载 android studio),那么如果您能提供建议,我将不胜感激。 Thank for any help.感谢您的帮助。

It's actually on the Welcome screen now, under the Configure menu它现在实际上在欢迎屏幕上,在配置菜单下

android studio 中的 sdk 管理器

I couldn't find it from within the IDE when editing a project.编辑项目时,我在 IDE 中找不到它。 If you have a project open, be sure to click File / Close Project to return to the Welcome screen.如果您打开了一个项目,请务必单击文件/关闭项目以返回到欢迎屏幕。

You have accidently disabled Android Support plugin in your plugin list.您不小心禁用了插件列表中的Android Support插件。 Try enable it and restart Android Studio.尝试启用它并重新启动 Android Studio。

To be detailed: In your first picture, Configure -> Plugins , tick almost everything to enable (for me which is also using Android Studio 3.1.3, there are Android Support , Android APK Support , Firebase Services , Google Developers Samples , Firebase App Indexing , Firebase Testing , Test Recorder , Google Services , Google Cloud Tools For Android Studio , Android NDK Support , Android Games and App Links Assistant ), then OK to Restart Android Studio.详细说明:在你的第一张图片中, Configure -> Plugins ,勾选几乎所有启用(对我来说也使用 Android Studio 3.1.3,有Android Support , Android APK Support , Firebase Services , Google Developers Samples , Firebase App IndexingFirebase TestingTest RecorderGoogle ServicesGoogle Cloud Tools For Android StudioAndroid NDK SupportAndroid GamesApp Links Assistant ),然后OK Restart Android Studio。

Follow these steps after uninstalling previous version of Android studio:卸载旧版 Android Studio 后,请按照以下步骤操作:

  1. Download SDK zip file from here --> developer.android.com从这里下载 SDK zip 文件 --> developer.android.com

  2. Extract the zip file.解压缩 zip 文件。

  3. Copy and paste that extracted folder into Applications/Android Studio/将提取的文件夹复制并粘贴到 Applications/Android Studio/

  4. Open Android Studio.打开安卓工作室。 Go to: (Quick Start) / Configure / Project Defaults / Project Structure / (Android SDK Location) and browse SDK folder.转到:(快速入门)/配置/项目默认值/项目结构/(Android SDK 位置)并浏览 SDK 文件夹。
  5. Apply and save.应用并保存。

If SDK Manager is missing.如果缺少 SDK 管理器。 But SDK is installed.但是安装了SDK。 then you need install Sdk manager command line.那么你需要安装 Sdk 管理器命令行。

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar.要从 Android Studio 打开 SDK 管理器,请单击工具 > SDK 管理器或单击工具栏中的 SDK 管理器。 If you're not using Android Studio, you can download tools using the sdkmanager command-line tool.如果您没有使用 Android Studio,则可以使用sdkmanager 命令行工具下载工具

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

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