DB的连接池已关闭,但仍在使用1个连接。它们将释放回池中时将关闭

时间:2019-03-05 16:27:03

标签: android react-native android-sqlite react-native-android

在显式关闭数据库时,在我的React Native Mobile应用程序中出现此错误时,我在Andorid Studio日志中看到,有1个连接池正在停止数据库关闭进程。

03-05 16:37:10.339 7132-7234/com.samplecode.DB I/SQLiteConnectionPool: The connection pool for /data/user/0//com.samplecode.DB /databases/CXODashboardDBNew.db3 has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.

并与此:

A SQLiteConnection object for database 'databases/CXODashboardDBNew.db3' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

我必须先关闭数据库,然后再删除它,有人可以帮我完成所有事务后强制关闭数据库吗?

0 个答案:

没有答案