Falta la clase del esquema para este Reino
Configuración del proyectoAndroid studio 2.3.3Reino 3.5.0FuenteRealmController.java
public RealmController(Context context) {
try {
this.context = context;
Realm.init(context);
PrintLog("RealmController", "RealmController", "Init realm", LOG_LEVEL_INFO);
realmInstance = Realm.getDefaultInstance();
PrintLog("RealmController", "RealmController", "Getting realm instance", LOG_LEVEL_INFO);
}
catch (Exception err) {
PrintLog("RealmController", "RealmController", "Error: " + err.getMessage(), LOG_LEVEL_ERROR);
}
}
SellingData.javapublic class SellingDataTable extends RealmObject {
public Date todaysDate;
public int sellingData;
public Date getTodaysDate() {
return todaysDate;
}
public void setTodaysDate(Date todaysDate) {
this.todaysDate = todaysDate;
}
public int getSellingData() {
return sellingData;
}
public void setSellingData(int sellingData) {
this.sellingData = sellingData;
}
}
Comportamiento esperadoObtener instancia predeterminada del reino.Comportamiento realVoy a chocar
08-09 15:24:16.044 [I2maxMain] {Init} (preparing ui)
08-09 15:24:16.120 [RealmController] {RealmController} (Init realm)
08-09 15:24:16.129 [RealmController] {RealmController} (Error: The 'SellingDataTable' class is missing from the schema for this Realm.)