2016-09-27 215 views
11

我正在運行模擬器並收到有關內存泄漏的以下錯誤。有趣的是,泄露的數據庫似乎是Google gms而不是用戶數據庫。有誰知道如何修理它?謝謝!SQLiteConnection數據庫在運行模擬器時發生泄漏

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

看起來像'com.google.android.gms'代碼中的錯誤... –

回答

15

打開設置 - 應用程序 - 因爲你不使用你的GoogleApiClient

disconnect()方法見here更多清除全部數據

+1

只需注意一點,您可能必須在不同模擬器上稍微查看一下。我在Nexus 5X仿真器上的Google Play服務>設置>管理空間...下找到了這個選項。 –

0

這可能 - 谷歌遊戲服務 - 管理空間。