简体   繁体   English

“工具”菜单中没有Android选项,也没有AVD管理器

[英]NO Android option in “tool” menu, and no avd manager

Problem : No AVD manager in Android Studio, and no "Android" option in the "tool" menu. 问题:Android Studio中没有AVD管理器,并且“工具”菜单中没有“ Android”选项。

Tried solutions : 尝试过的解决方案:

  • re-install (twice) 重新安装(两次)
  • changed installation partition to the one containing the Android SDK directory 将安装分区更改为包含Android SDK目录的分区
  • went to "configure" - "project default" - "project structure", and checked my Adroid SDK directory (it's there) 转到“配置”-“项目默认”-“项目结构”,并检查了我的Adroid SDK目录(位于该目录中)
  • open a new project - there is still no android menu, and no avd manager. 打开一个新项目-仍然没有android菜单,也没有avd管理器。
  • instead of "Android" in the "tool" menu, i have "Kotlin" 而不是“工具”菜单中的“ Android”,我有“科特琳”
  • i tried to use terminal, and console, to launch android avd : not opening 我试图使用终端和控制台启动android avd:无法打开
  • i tried to search for Android, or AVD, in the search option. 我试图在搜索选项中搜索Android或AVD。 they show, but when i click, nothing happens 他们显示,但是当我单击时,什么也没有发生
  • i saw people saying i needed 5gig storage to install Android Studio. 我看到有人说我需要5gig存储空间才能安装Android Studio。 but when i install mine, it only offers one option, and total is 2gig. 但是当我安装我的时,它只提供了一个选项,总共是2gig。 but i have way more than enough storage space on both my partition for 5gig or 50gig 但是我在两个分区上都有足够的存储空间来容纳5gig或50gig
  • i tried to customize toolbar, but Android options are just not there to be made visible 我试图自定义工具栏,但没有显示Android选项
  • i have read all the posts here regarding this issue, and have not found a solution that works. 我已经阅读了有关此问题的所有帖子,但没有找到有效的解决方案。

It must be a simple step that i am missing, but which one ??? 这一定是我所缺少的简单步骤,但是哪一个? - --

Which Android Studio are you trying to use? 您要使用哪个Android Studio? I am using 3.0 and I see both "Android" and "Kotlin" submenus under "Tools". 我正在使用3.0,并且在“工具”下看到了“ Android”和“ Kotlin”子菜单。 I am using macOS 10.12.6 我正在使用macOS 10.12.6

I faced the same issue, but it's resolved now. 我遇到了同样的问题,但现在已解决。

Follow the steps mentioned below: 请按照以下步骤操作:

  1. Run the unistaller from Control Panel if you are using windows. 如果使用Windows,请从“控制面板”运行卸载程序。
  2. After you have uninstalled Android Studio, it is recommended that you restart the machine before proceeding with the steps below. 卸载Android Studio后,建议您重新启动计算机,然后再继续执行以下步骤。
  3. To remove and delete the remains of Android studio setting files; 删除和删除Android Studio设置文件的剩余内容;

    • Go to C:\\Users[YOUR WINDOWS USERNAME] 转到C:\\ Users [您的WINDOWS用户名]

    • Delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2. 删除.android,.AndroidStudio以及该目录的任何版本(末尾带有.gradle和.m2)。

    • Then, go to C:\\Users[YOUR WINDOWS USERNAME]\\Roaming and delete the JetBrains directory. 然后,转到C:\\ Users [您的WINDOWS用户名] \\ Roaming并删除JetBrains目录。 (If any, else ignore). (如果有,否则忽略)。

    • Finally, go to C:\\Program Files and delete the Android directory. 最后,转到C:\\ Program Files并删除Android目录。

    • Delete any remains of the SDK, in Windows Explorer, C:\\Users[YOUR WINDOWS USERNAME]\\AppData\\Local and delete the Android directory. 在Windows资源管理器中,删除SDK的所有剩余内容,即C:\\ Users [您的WINDOWS用户名] \\ AppData \\ Local,然后删除Android目录。

    • (Optional) Delete all previous projects AndroidStudioProjects directory. (可选)删除所有以前的项目AndroidStudioProjects目录。

  4. Instal Android Studio 安装Android Studio

  5. Wait till after sometime a prompt will appear to standard or custom installation 等到一段时间后,将出现标准或自定义安装的提示

    • Select Custom Installation and make sure Android virtual device is selected there and continue install. 选择自定义安装,并确保在那里选择了Android虚拟设备,然后继续安装。
  6. Once everything is done.. Create a project with basic actvity and then wait.. It atleast take 5- 10 minutes to load... At the end you will see Gradle build finished in the console. 一切完成后。.创建具有基本活动的项目,然后等待。.至少需要5至10分钟才能加载...最后,您将在控制台中看到Gradle构建完成。

  7. You may get errors in console. 您可能会在控制台中得到错误。 There will be link to fix all these errors at the console only if there are any errors.. click on those links and those will get automatically fixed. 仅当存在任何错误时,才会在控制台上提供修复所有这些错误的链接。单击这些链接,这些链接将自动得到修复。 Do this till the console errors goes away. 这样做直到控制台错误消失。

  8. Then view Tools menu hopefully you should find ANDROID menu option there :) 然后查看“工具”菜单,希望在那里您可以找到ANDROID菜单选项:)

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

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