Android Room数据库文件为空-.db,.db-shm,.db-wal [英] Android Room database file is empty - .db, .db-shm, .db-wal

查看:224
本文介绍了Android Room数据库文件为空-.db,.db-shm,.db-wal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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数据库文件为空-.db,.db-shm,.db-wal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆