gpt4 book ai didi

android - 如何修复泄露的 "SQLiteConnection for gms database"

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:32:36 26 4
gpt4 key购买 nike

我的应用程序使用 Google Play 服务,在 logcat 中收到以下警告

 12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/metrics.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/help_responses.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

...但与 SO 上讨论的所有其他情况不同,我的应用程序不使用任何数据库

相反,它似乎是 Google Play 服务 数据库的泄漏。

如何解决这个问题?

最佳答案

Android Monitor 上的 Android Studio 中,右上角从 “Firebase” 更改为 “Show only selected application”

关于android - 如何修复泄露的 "SQLiteConnection for gms database",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40994231/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com