问题 运行模拟器时,SQLiteConnection数据库会泄漏


我正在运行模拟器并收到有关内存泄漏的以下错误。有趣的是,泄漏的数据库似乎是谷歌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.

6508
2017-09-27 22:03


起源

看起来像是一个错误 com.google.android.gms 码... - Andrey Kopeyko


答案:


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


15
2017-09-27 23:52



只需注意,您可能需要在不同的模拟器上查看一下。我在Nexus 5X仿真器上找到了... Google Play服务>设置>管理空间... - Bill the Lizard


这可能是因为你没有使用 disconnect() 你的方法 GoogleApiClient 

看到 这里 更多。


0
2017-07-20 14:13