Sugar orm create table issue
<p>First of all I have searched everywhere for a solution but I haven't found a solution for the common error on table creation:</p>

<blockquote>
  <p>Caused by: android.database.sqlite.SQLiteException: no such table:
  EVENT (code 1): , while compiling: INSERT OR REPLACE  INTO EVENT</p>
</blockquote>

<p>My manifest:</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.company.something.something2"&gt;
        ...
        &lt;meta-data android:name="DATABASE" android:value="sugarexample.db" /&gt;
        &lt;meta-data android:name="VERSION" android:value="4" /&gt;
        &lt;meta-data android:name="QUERY_LOG" android:value="true" /&gt;
        &lt;meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="com.company.something.something2.Entities" /&gt;
</code></pre>

<p>My entity:</p>

<pre><code>package com.company.something.something2.Entities;

import com.orm.SugarRecord;

public class Event extends SugarRecord {
    private String description;
    private String title;
    private String photo;
    public Event() {

    }

    //setters and getters
}
</code></pre>

<p>My Activity (for debugging):</p>

<pre><code>...
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SugarContext.init(getApplicationContext());
        com.company.something.something2.Entities.Event book =
                new com.company.something.something2.Entities.Event();
        book.setId((long) 1);
        book.setTitle("test");
        book.setDescription("de");
        book.setPhoto("someurl");
        book.save();
</code></pre>

<p>What I have tried:</p>

<ul>
<li>Disabling Instant Run in Android Studio</li>
<li>Removing DOMAIN_PACKAGE_NAME meta tag (someone suggested at some point)</li>
<li>Changing it's value to <code>com.company.something.something2</code></li>
<li>Reinstalling the app</li>
<li>Incrementing VERSION</li>
<li>Renaming DATABASE value</li>
<li>Creating a migration file to create the database</li>
</ul>

<p>P.S: I am using SugarORM 1.5, Gradle 2.1.3</p>

<p>Does anyone have any ideeas?</p>