Benjamin Ting
Benjamin Ting

Reputation: 710

SQLiteConnection databases leak when running emulator

I was running the emulator and received the following errors about memory leak. It was interesting that the leaking database seems to be of the Google gms instead of a user database. Does anyone know how to fix it? Thanks!

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.

Upvotes: 11

Views: 8828

Answers (2)

Nicholas blott
Nicholas blott

Reputation: 31

It's probably because you aren't using the disconnect() method of your GoogleApiClient

See here for more.

Upvotes: 0

Elron
Elron

Reputation: 531

Open Settings - Apps - Google Play Services - MANAGE SPACE - CLEAR ALL DATA

Upvotes: 15

Related Questions