本文介绍了Android Studio 中缺少数据库检查器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过多种方式在 Android Studio 中找到我的数据库检查器,但无济于事:

I have tried to find my Database Inspector in Android Studio in multiple ways, but to no avail:

  1. 视图 → 工具窗口 → 数据库检查器 不存在
  2. 无法使用搜索功能找到帮助 → 查找操作 → 数据库检查器
  3. 删除并重新下载 Android Studio:错误仍然存​​在

我做错了什么??我怎样才能找回我的数据库检查器?

What am I doing wrong?? How can I get my Database Inspector back?

推荐答案

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

这篇关于Android Studio 中缺少数据库检查器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 12:52
查看更多