ActiveAndroid SQLite exception 'No such table' ActiveAndroid SQLite exception 'No such table' database database

ActiveAndroid SQLite exception 'No such table'


although late, hope this help.

from official page of ActiveAndroid in github:

"This is because ActiveAndroid only generates the schema if there is no existing database file. In order to "regenerate" the schema after creating a new model, the easiest way is to uninstall the app from the emulator and allow it to be fully re-installed. This is because this clears the database file and triggers ActiveAndroid to recreate the tables based on the annotated models in the project."


Increment your AA_DB_VERSION in your manifest. That will force ActiveAndroid to regenerate your schema.


it seems you have forgotten to call super() on your model class in the constructor function:

public Splits(double startLat, double startLong, int passengers, String direction){    super();    this.startLat = startLat;    this.startLong = startLong;    this.passengers = passengers;    this.direction = direction;}

Another possibility is that you didn't declare your Model class in your Manifest file.