错误:java.util.concurrent.TimeoutException:android.database.sqlite.SQLiteConnection.finalize()在10秒后超时
我收到此错误但未在project.Below中找到任何特定行。我的logcat输出:
java.util.concurrent.TimeoutException: android.database.sqlite.SQLiteConnection.finalize() timed out after 10 seconds
at android.database.sqlite.SQLiteConnection.nativeClose(Native Method)
at android.database.sqlite.SQLiteConnection.dispose(SQLiteConnection.java:238)
at android.database.sqlite.SQLiteConnection.finalize(SQLiteConnection.java:178)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
at java.lang.Thread.run(Thread.java:818)
答案 0 :(得分:1)
垃圾收集器尝试清除您忘记自行关闭的SQLiteConnection
实例。照顾close()
数据库实例。