Android Studio 2.2.2:工具>Mac OS X 中缺少 Android 菜单 [英] Android Studio 2.2.2 : Tools > Android menu is missing in Mac OS X

查看:32
本文介绍了Android Studio 2.2.2:工具>Mac OS X 中缺少 Android 菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题,差不多.

通常,工具"菜单中有一个Android"项,其中包含 Android SDK 管理器等内容.由于没有显示整个工具菜单,我无法访问 SDK 管理器.

Normally there's an "Android" item in the "Tools" menu, which contains things like the Android SDK Manager. Since the whole Tools menu does not show up, I can't access the SDK Manager.

什么控制这个子菜单是否显示?我该如何解决这个问题?

What controls if this submenu shows or not? How can I fix this?

推荐答案

这发生在我身上,因为我打开了错误的项目文件夹.在 Android Studio 中打开项目文件夹时,请确保打开 Android 项目的主要顶级文件夹(包含 build.gradlegradle.properties、等等.).作为 React Native 项目的一部分,我打开了这个文件夹上面的文件夹——当我从 android/ 文件夹关闭并重新打开该项目时,菜单项重新出现,Gradle 同步开始工作.

This happened for me because I had opened the wrong project folder. When opening your project folder in Android Studio, make sure you open the main, top-level folder of the Android project (the one containing build.gradle, gradle.properties, etc.). I had opened the folder above this one as part of a React Native project--when I closed and reopened the project from the android/ folder, the menu item reappeared and Gradle sync began working.

这篇关于Android Studio 2.2.2:工具>Mac OS X 中缺少 Android 菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆