0

error: There is a problem with the query: [SQLITE_ERROR] SQL error or missing database (no such table: task)

This Error is shown, How can i possibly fix this?

I'm following this tutorial

Thaakan
  • 3
  • 5

1 Answers1

0

That tutorial is broken.

For your specific problem, change:

@Query("SELECT * FROM task")

to:

@Query("SELECT * FROM Recipe")

and hope for the best.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false. This is what I get after doing that. – Thaakan Jan 20 '20 at 13:07
  • That is merely a warning. If and when you start writing instrumented tests for testing Room migrations, you will need to worry about that. – CommonsWare Jan 20 '20 at 13:15