android – Sugar ORM没有这样的表异常

Sugar ORM在Android< 5上完美运行,但在Android 5>它崩溃了.
我使用的是1.4版

请帮我.

错误:android.database.sqlite.SQLiteException:没有这样的表:AUDIO(代码1):,同时编译:SELECT * FROM AUDIO

proguard-rules.pro

-keep class me.lobanov.mp3downloadsfree.models.** { *; }

我的模特课:

package me.lobanov.mp3downloadsfree.models;

import com.orm.SugarRecord;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Audio extends SugarRecord {
    private long aud_id;
    private String aud_artist;
    private String aud_title;
    private String aud_url;
    private long aud_duration;

    public Audio() {
    }

    public Audio(long aud_id, String aud_artist, String aud_title, String aud_url, long aud_duration){
        this.aud_id = aud_id;
        this.aud_artist = aud_artist;
        this.aud_title = aud_title;
        this.aud_url = aud_url;
        this.aud_duration = aud_duration;
    }
}

我的应用类:

public class App extends SugarApp {
    @Override
    public void onCreate() {
        super.onCreate();
    }
}

我的清单:

<meta-data android:name="DATABASE" android:value="mp3downloadsfree.db" />
        <meta-data android:name="VERSION" android:value="5" />
        <meta-data android:name="QUERY_LOG" android:value="true" />
        <meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="me.lobanov.mp3downloadsfree.models" />
最佳答案
禁用即时运行对我有用.

转载注明原文:android – Sugar ORM没有这样的表异常 - 代码日志