2015-10-15 39 views
-1

我发现了设备模拟器的异常。它来自com.google.android.gms来自com.google.android.gms的错误

1116-31507/com.google.android.gms E/CursorLeakDetecter﹕ PossibleCursorLeak:content://com.google.android.gms.common.stats.net.contentprovider/networkrawreport,QueryCounter:5 
    android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here 
      at android.content.ContentResolver.query(ContentResolver.java:399) 
      at android.content.ContentResolver.query(ContentResolver.java:316) 
      at com.google.android.gms.common.stats.net.NetworkReportService.a(SourceFile:141) 
      at com.google.android.gms.gcm.am.run(SourceFile:129) 
+0

发布您的代码... –

+0

发布您的代码,以解决您的问题... – johnrao07

+0

它不是来自GCM它是从您的数据库光标,你忘了关 –

回答

1

要么你打电话getReadableDatabase()方法两次 或确保关闭数据库之前关闭游标。