且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio 中缺少数据库检查器

更新时间:2023-02-02 21:49:33

Flutter 项目中缺少 Android 视图?

我在做一个 Flutter 项目,典型的 Android 相关视图没有出现在 View → Tool Windows 的列表中:

  • 应用检查
  • Logcat
  • 设备文件资源管理器
  • 分析器
  • 模拟器

对于一些同事,他们在同一个项目中可见.当我打开不同的 Android/Flutter 项目时,它们对我来说也是可见的.但不适用于这个特定项目.重新安装 Android Studio 没有帮助.

For some colleagues they were visible for the same project. When I opened different Android / Flutter projects, they were visible for me too. But not for this particular project. Re-installing Android Studio did not help.

原来我必须为这个项目启用Android Facet:

It turned out that I had to enable the Android Facet for this project:

  • 转到文件 → 项目结构
  • 选择方面
  • 按下顶部的 + 小按钮
  • 从列表中选择 Android
  • 点击project_name 确认您的项目,然后按确定
  • Go to File → Project Structure
  • Choose Facets
  • Press the small + Button at the top
  • Select Android from the list
  • Confirm your project by clicking the project_name and press OK

此设置本地存储在 .idea/project_name.iml 中.在我们的 .gitignore 文件中,.idea 文件夹被排除在版本控制之外.这就是为什么重新安装没有帮助,其他用户对同一个项目有不同的体验.

This setting is stored locally in the .idea/project_name.iml. The .idea folder is excluded from version control in our .gitignore file. That is why re-installing did not help and other users had a different experience for the same project.

Android Studio 北极狐 |2020.3.1 补丁 1

Android Studio Arctic Fox | 2020.3.1 Patch 1