简体   繁体   中英

Where should we put database file on Android studio?

I put database file in the folder assets on Android Studio. I can't find a file explorer in Android studio like in Eclipse. I made this database on SQLite expert personal.

When I am launching my application there are errors - what should i do? Does anybody have any examples like this? Thanks in advance for any help!

First of all, breathe.

It is going to be pretty hard to figure out exactly what happened to to file, given your description. The good news is that it is pretty unlikely that it is actually gone. You should just focus on locating it.

I suggest you use your OS' search to find the file. On a *nux based system, from a command line at the root of the Studio project directory, type:

find . -name <mydatabasefile.db>

Windows has similar capabilities.

A Studio project tree is pretty small. At very worst, you will need to open it in your OS file browser and look around.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM