Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics SDK 10.2.0 has StrictMode violations

I have nowhere to report this but here, as the issue tracker is read-only: https://code.google.com/p/analytics-issues/issues/list

When running with StrictMode enabled I get the following from the Google Analytics SDK v10.2.0:

02-16 10:55:46.245 2633-2641/com.visiolink.reader.wrapper E/StrictMode: Finalizing a Cursor that has not been deactivated or closed. database = /data/user/0/com.visiolink.reader.wrapper/databases/google_app_measurement_local.db, table = null, query = select count(1) from messages
                                                                        android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
                                                                            at android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:98)
                                                                            at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:50)
                                                                            at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316)
                                                                            at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)
                                                                            at com.google.android.gms.internal.zzatv.zza(Unknown Source)
                                                                            at com.google.android.gms.internal.zzatv.zza(Unknown Source)
                                                                            at com.google.android.gms.internal.zzaul.zzc(Unknown Source)
                                                                            at com.google.android.gms.internal.zzauj.zzb(Unknown Source)
                                                                            at com.google.android.gms.internal.zzauj.zza(Unknown Source)
                                                                            at com.google.android.gms.internal.zzauj$8.run(Unknown Source)
                                                                            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
                                                                            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                            at com.google.android.gms.internal.zzaud$zzd.run(Unknown Source)
like image 240
Claus Holst Avatar asked Feb 16 '17 10:02

Claus Holst


1 Answers

I had the exact same problem with Firebase and it appears to be fixed in version 11.0.1. so try updating your dependencies

like image 154
Petar Marijanovic Avatar answered Nov 14 '22 12:11

Petar Marijanovic