【问题标题】:Why is Android Studio's emulator tool window unavailable for some apps?为什么某些应用无法使用 Android Studio 的模拟器工具窗口?
【发布时间】:2021-10-20 12:53:03
【问题描述】:

在我的一些(颤振)应用程序中,我可以在工具窗口中运行 Android 模拟器。但在大多数情况下,我不能;模拟器窗口没有出现,并且没有View > Tool Windows > Emulator菜单项(以及其他缺少的工具窗口,包括Profiler, App Inspection, Build Variants, Dart AnalysisDevice File Explorer)。

比较执行显示仿真器工具窗口的项目的设置,我没有发现任何差异。两者都具有相同的 Android SDK (11.0) 和 SDK 设置(相同的构建工具、平台工具等)。当然,相同的模拟器,以及在工具窗口中启动模拟器的相同设置。

Android Studio 模拟器中的所有应用程序都可以正常运行,只是我是否可以在工具窗口中运行模拟器的区别。

这是一个错误还是我需要更改一些其他设置? (如有必要,我很乐意添加其他设置信息。)

我可以通过创建一个新的颤振项目来重新创建问题。这个问题我已经有一段时间了,但我目前的设置是:

Android Studio 北极狐 | 2020.3.1 补丁 1 构建 #AI-203.7717.56.2031.7621141,构建于 2021 年 8 月 7 日运行时版本:11.0.10+0-b96-7249189 amd64 VM:Oracle Corporation 的 OpenJDK 64-Bit Server VM Windows 10 10.0 GC:G1 Young Generation,G1 Old一代 内存:1280M 内核:4 注册表: ide.intellij.laf.enable.animation=true, external.system.auto.import.disabled=true, ide.balloon.shadow.size=0 非捆绑插件:com.mallowigi.idea、Dart、org.jetbrains.kotlin、 io.flutter

【问题讨论】:

    标签: android flutter android-studio android-emulator


    【解决方案1】:

    经过额外搜索,我发现posted here with screenshots 的解决方案似乎解决了我的问题。基本上,您单击FileProject Structure ... 在项目设置中选择Modules,然后为您的项目选择+ 按钮。添加Android模块,点击OK

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-07
      • 1970-01-01
      • 2015-03-22
      • 2022-01-15
      • 1970-01-01
      • 2016-02-25
      • 2015-10-09
      相关资源
      最近更新 更多