如何在 Android Studio 中嵌入 android 模拟器?

How to embed android emulator inside Android Studio?

我知道 Android Studio 4.1+ 中引入了嵌入式仿真器。我看不到启用它的选项。

变更日志说您需要手动启用它。请按照以下步骤操作:

步骤

  1. 打开 Android Studio 并转到首选项/设置

  1. 展开“工具”选项卡并转到模拟器
  2. 勾选'Launch in a tool window'

除之前之外,如果您在 IDE 中没有看到模拟器选项卡: 我发现在项目目录中添加“

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
    <component name="ProjectModuleManager">
        <modules>
            <module fileurl="file://$PROJECT_DIR$/renal_calc_flutter.iml" filepath="$PROJECT_DIR$/renal_calc_flutter.iml" />
            <module fileurl="file://$PROJECT_DIR$/android/renal_calc_flutter_android.iml" filepath="$PROJECT_DIR$/android/renal_calc_flutter_android.iml" />
        </modules>
     </component>
 </project>