[英]How to open a sqlite file in Android Studio (3.0.1) / Device File Explorer
I have accessed my sqlite file under data/data//databases/. 我已经在data / data // databases /下访问了我的sqlite文件。 Then I tried to open it in Android Studio. 然后,我尝试在Android Studio中打开它。 I selected SQL File as the file type, but Android Studio showed me a sequence of characters. 我选择SQL File作为文件类型,但是Android Studio向我显示了一个字符序列。 Not a browser of sqlite file. 不是sqlite文件的浏览器。
Is there any way to fix this? 有没有什么办法解决这一问题? Can I open that sqlite database file under an application like 'DB Browser for SQLite', without saving that file under a folder and opening it from there? 是否可以在“ SQLite的数据库浏览器”之类的应用程序下打开该sqlite数据库文件,而无需将该文件保存在文件夹中并从那里打开?
No, you can't open sqlite files in Android Studio yet. 不,您还不能在Android Studio中打开sqlite文件。 Every day I do it this way: stetho ( http://facebook.github.io/stetho/ ) - powerful tool which allows browse tables and execute queries 每天我都这样做:stetho( http://facebook.github.io/stetho/ )-功能强大的工具,它允许浏览表并执行查询
or downloading DB file into my local file system (through adb or Device File Explorer) and open with SQLite Browser ( https://sqlitebrowser.org/ ) 或将数据库文件下载到我的本地文件系统中(通过adb或设备文件资源管理器)并使用SQLite浏览器( https://sqlitebrowser.org/ )打开
Please take a look at SQLite Administrator
. 请看一下SQLite Administrator
。 It is a free software, you can open a database file, create tables, launch queries, etc. I use it quite often when I need to take a closer look at a SQLite
db file. 它是一个免费软件,您可以打开数据库文件,创建表,启动查询等。当我需要仔细查看SQLite
数据库文件时,经常使用它。
You can try also this: https://www.quora.com/How-do-I-see-database-tables-in-Android-Studio 您也可以尝试以下操作: https : //www.quora.com/How-do-I-see-database-tables-in-Android-Studio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.