如何修复泄露的"SQLiteConnection for gms数据库"

Jo *_* Mo 12 android memory-leaks google-play-services

我的应用程序使用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.
Run Code Online (Sandbox Code Playgroud)

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

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

如何解决这个问题?

Min*_*nis 35

在Android Monitor Android Player上右上角从"Firebase"更改为"仅显示所选应用程序"

  • 你救了我的一天.. !! :) @Minis (3认同)
  • 这对我很有帮助 (3认同)
  • 感谢信息...帮助..很多..我认为我的应用程序或Android工作室的问题 (2认同)
  • 这不是解决方案,这只是隐藏了消息。 (2认同)

Moh*_*rei 0

我想如果你清除谷歌游戏商店的数据,那就没问题了!

设置 -> 应用程序 -> Google Play 服务 -> 管理空间 -> 清除所有数据