我正在运行模拟器并收到有关内存泄漏的以下错误。有趣的是,泄漏的数据库似乎是谷歌gms而不是用户数据库。有谁知道如何修理它?谢谢!
09-27 15:55:07.252 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/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.
09-27 15:55:07.255 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/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.
09-27 15:55:07.259 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/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.
答案 0 :(得分:15)
打开设置 - 应用 - Google Play服务 - 管理空间 - 清除所有数据
答案 1 :(得分:0)
可能是因为您没有使用disconnect()
的{{1}}方法
有关详情,请参阅here。