Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix a "SQLiteConnection for gms database" that was leaked

My application, which uses Google Play Services, received the following warning in the 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.

...but unlike all the other cases discussed on SO, my application does not use any databases,

rather, it seems to be a leak from a database of Google Play Services.

How would one fix that?

like image 792
Jo Mo Avatar asked Dec 06 '16 11:12

Jo Mo


1 Answers

In Android Studio on Android Monitor right corner change from "Firebase" to "Show only selected application"

like image 175
Minis Avatar answered Nov 01 '22 00:11

Minis