如何在 Android Studio 中终止数据库检查器 [英] How to terminate Database Inspector in Android Studio

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

问题描述

我在 Android Studio 4.1 Canary 10 (Build #AI-201.7223.91.41.6507185) 中使用数据库检查器,由于这是一项新功能,我遇到了许多错误.并且有很多事件日志弹窗如下:

I am using Database Inspector in Android Studio 4.1 Canary 10 (Build #AI-201.7223.91.41.6507185) and as this is a new feature, I am encountering many bugs. And there are a lot of event log popups as follows:

数据库检查器:读取 Sqlite 数据库时出错:无法对数据库 (id=8) 执行操作.数据库可能已经关闭.

Database Inspector: Error reading Sqlite database: Unable to perform an operation on database (id=8). The database may have already been closed.

它在应用程序启动后立即使我的应用程序崩溃.

And it keeps on crashing my application right after app launch.

所以我的问题是如何从我的进程中分离数据库检查器?一旦我附加了一个进程或只是打开了数据库检查器,它就不会让我的应用程序单独存在,直到我重新启动 android工作室.有什么办法可以随时终止数据库检查器吗?

So my question is how do I detach database inspector from my process? Once I attach a process or just open the database inspector, it just doesn't leave my app alone until I restart the android studio. Is there some way I can terminate the database inspector any time?

推荐答案

最后,在 Android Studio 4.2.0 中,他们添加了一个按钮来停止数据库检查器.

Finally, in Android Studio 4.2.0 they have added a button to stop the database inspector.

Android Studio 4.2.0+
数据库检查器 ->(左上角的设备列表下拉菜单) ->停止检查器

低于 4.2.0
文件 ->使缓存无效/重新启动 ->只需重新启动(无需使缓存无效)

附言您可以从以下位置检查您的 android studio 版本:帮助 ->关于

P.S. You can check your android studio version from: Help -> About

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

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