Here on this place ( book.save() ) an exception is thrown (screen below):
Androidmanifest.xml :
An exception screen that crashes:
The SQLiteException: no such table exception obviously indicates that the table you are trying to perform any manipulations on does not exist.
You may have changed the database schema, but forgot to increment the version of the database schema in AndroidManifest.xml .
In AndroidManifest.xml replace:
<meta-data android:name="VERSION" android:value="2" /> on:
<meta-data android:name="VERSION" android:value="3" /> VERSION is a version of the database schema.
And yet, when working with Sugar ORM it is better to disable Instant Run.
In the exception, usually, a direct error is written. You have this:
... no such table: BOOK That is, you are trying to insert a new row into a table that has not yet been created in the SQLite database.
Source: https://ru.stackoverflow.com/questions/595894/
All Articles
<meta-data android:name="VERSION" android:value="2" />with<meta-data android:name="VERSION" android:value="3" />. - post_zeewInstant Rundisconnect. - post_zeew