Configuration:
the IDE: IDEA
database: the SQLite
Andriod-V: 8.0 (simulator)
Gradle-V: 4.4
problem
When Andrews developed in a SQLite database to re-create the database and includes a new index, but can not find a display table to return the newly added index? ? ?
My situation is the code correctly, database operations command also correct, but that would be wrong.
Try: modify the code to clear the cache IDEA (useless)
Solution
The reason: Since the beginning of the small database index when adding some new time, when you reinstall the original userData.db APP will happen remains in the simulator, again using SQLite statement when inserted into the database table, or use the original construction of the .db file, so the table does not contain index your newly added.
Solution: Uninstall the simulator in your APP, APP and then run your project, will not be wrong.