Android Room数据库文件为空 [英] Android Room database file is empty
本文介绍了Android Room数据库文件为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在android中使用数据库室.当我尝试在sqlviewer中查看数据时,则在数据库文件中找不到表 Myapp.db文件为空. 数据/数据/packageName/数据库/Myapp.db
Using room in android for database. When I tried to see the data in sqlviewer then no tables found in database file Myapp.db file is empty. Data/data/packageName/databases/Myapp.db
推荐答案
转到文件夹Data/data/packageName/databases/必须有三个文件.db
,.db-shm
,.db-wal
,复制所有三个文件到一个位置,然后打开Myapp.db,这两个额外的文件需要打开db文件
Go to folder Data/data/packageName/databases/ There has to be three files .db
, .db-shm
, .db-wal
, copy all three files to one location and then open your Myapp.db these two extra files are needed to open db file
这篇关于Android Room数据库文件为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文