为什么在Intellij中使用Android SDK时缺少Android AVD Manager? [英] Why is the Android AVD Manager missing when using Android SDK in Intellij?

查看:943
本文介绍了为什么在Intellij中使用Android SDK时缺少Android AVD Manager?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在IntelliJ项目中尝试使用Android SDK,这是一个较大的项目,既包含Web和ios客户端,也包含服务器端(因此这就是为什么我不使用Android Studio的原因).我已经在Mac OSX机器上的Android SDK上安装了.我运行了SDK Manager,并安装了Android 6.0(API 23)以及Android SDK工具25.1.7,Android SDK平台工具23.1和Android SDK生成工具23.0.1-24.我还在IntelliJ项目结构中设置了Android SDK.但是,工具"菜单不显示AVD管理器.这导致我在创建Android应用程序运行/调试配置时无法选择仿真器AVD.具体来说,首选Android虚拟设备"显示为未知AVD",下拉菜单中没有其他选项,"..."按钮显示为灰色. 如何不使用Android Studio而仅使用安装了Android SDK的IntelliJ来获得对AVD Manager的访问权限?(此外,如您从图中看到的那样,未指定我的模块,但我相信是另外一个问题)

I am trying to use the Android SDK in my IntelliJ project that is a larger project containing both web and ios clients as well as a server side (Thus that is why I'm not using Android Studio). I have installed on the Android SDK on my mac OSX machine. I ran the SDK Manager and installed Android 6.0 (API 23) as well as Android SDK Tools 25.1.7, Android SDK Platform-tools 23.1, and Android SDK Build-tools 23.0.1-24. I've also set up the Android SDK in my IntelliJ Project Structure. However, the Tools menu does not show the AVD Manager. This results in me being unable to select an emulator AVD when I create an Android Application Run/Debug Configuration. Specifically, the "Prefer Android Virtual Device" says "Unknown AVD" and there are no other options in that drop down and the "..." button is greyed out. How can I gain access to the AVD Manager without using Android Studio and simply using IntelliJ with the Android SDK installed? (Also, as you can see from the picture, my module is not specified, but that I believe is a separate issue)

推荐答案

对我来说,这是答案(在我按照所有其他步骤安装了正确的SDK之后):
在Intellij中,打开文件>.在android项目目录的根目录下打开build.gradle文件.在显示的弹出窗口中,选择以项目方式打开".然后在出现的对话框中选择所需的选项.简而言之,只有在将项目作为Android项目打开后,Android SDK Manager才可用.

The answer to this for me (after I had followed all other steps to getting the proper SDKs installed) was simply the following:
In Intellij, File > open. Open the build.gradle file in the root level of the android project directory. In the popup that displays, select Open as Project. Then select your desired options in the dialog that appears. In short, the Android SDK Manager is only available when you've opened a project as an Android project.

这篇关于为什么在Intellij中使用Android SDK时缺少Android AVD Manager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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