在表中再添加两个新参数后,出现此异常。添加参数后,我在卸载后重新安装了我的应用程序。 但是我得到这个例外。 下面是我的桌子
@Table(name="myTable")
public class MyTable{
private int Serial;
private String Title;
private String Summary;
private String ImageUrl;
private String PageUrl;
private String imageName;
private String From;
private String To;
public MyTable() {
}
public MyTable(int serial, String title, String summary, String imageUrl, String pageUrl, String imageName, String from, String to) {
Serial = serial;
Title = title;
Summary = summary;
ImageUrl = imageUrl;
PageUrl = pageUrl;
this.imageName = imageName;
From = from;
To = to;
}
public int getSerial() {
return Serial;
}
public void setSerial(int serial) {
Serial = serial;
}
public String getTitle() {
return Title;
}
public void setTitle(String title) {
Title = title;
}
public String getSummary() {
return Summary;
}
public void setSummary(String summary) {
Summary = summary;
}
public String getImageUrl() {
return ImageUrl;
}
public void setImageUrl(String imageUrl) {
ImageUrl = imageUrl;
}
public String getPageUrl() {
return PageUrl;
}
public void setPageUrl(String pageUrl) {
PageUrl = pageUrl;
}
public String getImageName() {
return imageName;
}
public void setImageName(String imageName) {
this.imageName = imageName;
}
public String getFrom() {
return From;
}
public void setFrom(String from) {
From = from;
}
public String getTo() {
return To;
}
public void setTo(String to) {
To = to;
}
}
在添加参数我的版本之前
<meta-data
android:name="VERSION"
android:value="7"/>
即使将数据库版本更改为
,我也遇到相同的异常<meta-data
android:name="VERSION"
android:value="8"/>
当我删除我在之后添加的添加参数时,它工作正常。有什么问题,请帮助我