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

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

问题描述

标题,差不多.

通常,工具"菜单中有一个"Android"项,其中包含Android SDK Manager之类的内容.由于没有显示整个工具"菜单,因此无法访问SDK Manager.

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 sync开始工作.

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天全站免登陆