我可以在 Android Studio 窗口内(或顶部)运行 Android 模拟器吗? [英] Can I run the Android Emulator within (or on top of) the Android Studio window?

查看:24
本文介绍了我可以在 Android Studio 窗口内(或顶部)运行 Android 模拟器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 macOS 上以全屏(最大化)使用 Android Studio.启动 Android Emulator 时,其窗口显示在常规桌面上.这需要从一个窗口切换到另一个窗口.我希望能够同时查看两个窗口,而无需在 Android Studio 中退出全屏模式.

有没有办法将 Android 模拟器窗口移动到我的 Android Studio 窗口内(或顶部)?

解决方案

使用 Android Studio 4.1 及更高版本,您可以直接在 Android Studio 中运行 Android Emulator.

要在 Android Studio 中运行模拟器,请确保您使用的是 Android Studio 4.1 和 30.0.10 或更高版本的 Android 模拟器,然后按照以下步骤操作:

  1. 点击文件>设置 >工具 >模拟器(或 Android Studio > 首选项 > 工具 > 模拟器,在 macOS 上),然后选择在工具窗口中启动并点击确定.

  2. 如果模拟器窗口没有自动出现,点击查看>打开它.工具窗口模拟器.

  3. 使用 AVD 管理器或在运行您的应用时定位它来启动您的虚拟设备.

更多信息:

I use Android Studio on macOS in full screen (maximised). When launching the Android Emulator, its window is shown on the regular desktop. This requires switching from one window to another. I'd like to be able to look at both windows at the same time, without leaving full screen mode in Android Studio.

Is there a way to move the Android Emulator window to within (or on top of) my Android Studio window?

解决方案

With Android Studio 4.1 and above you can run the Android Emulator directly in Android Studio.

To run the emulator in Android Studio, make sure you're using Android Studio 4.1 with version 30.0.10 or higher of the Android Emulator, then follow these steps:

  1. Click File > Settings > Tools > Emulator (or Android Studio > Preferences > Tools > Emulator on macOS), then select Launch in a tool window and click OK.

  2. If the Emulator window didn't automatically appear, open it by clicking View > Tool Windows > Emulator.

  3. Start your virtual device using the AVD Manager or by targeting it when running your app.

For more info: Run the Android Emulator directly in Android Studio

这篇关于我可以在 Android Studio 窗口内(或顶部)运行 Android 模拟器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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