我正在使用糖 ORM 创建一个表,但收到没有这样的表的错误。即使在 Android Manifest 中将 Version 更新为更高的值。
public class CachedVidcodes extends SugarRecord {
private String vidcodeId;
private String vidcodedownloadedPath;
public CachedVidcodes(){
}
public CachedVidcodes(String vidcodeId, String vidcodedownloadedPath){
this.vidcodeId = vidcodeId;
this.vidcodedownloadedPath = vidcodedownloadedPath;
}
public String getVidcodeId() {
return vidcodeId;
}
public void setVidcodeId(String vidcodeId) {
this.vidcodeId = vidcodeId;
}
public String getVidcodedownloadedPath() {
return vidcodedownloadedPath;
}
public void setVidcodedownloadedPath(String vidcodedownloadedPath) {
this.vidcodedownloadedPath = vidcodedownloadedPath;
}
}
Android Manifest 详细信息如下
<meta-data
android:name="DATABASE"
android:value="vd.db" />
<meta-data
android:name="VERSION"
android:value="2" />
<meta-data
android:name="QUERY_LOG"
android:value="true" />
<meta-data
android:name="DOMAIN_PACKAGE_NAME"
android:value="com.vf.vde.ormclasses" />