I have this base abstract class that looks like this.
public abstract class Species implements Parcelable {
public Species() {
}
public abstract String name();
}
And then my Human class looks like this.
@AutoValue
public abstract class Human extends Species implements Parcelable {
public static Human create(String humanVariable) {
return new AutoValue_Human(humanVariable);
}
public static Human create(String name, String humanVariable) {
return new AutoValue_Human(name, humanVariable);
}
public static TypeAdapter<Human> typeAdapter(Gson gson) {
return new AutoValue_Human.GsonTypeAdapter(gson);
}
@SerializedName("name")
public abstract String name();
@Nullable
@SerializedName("human_variable")
public abstract String humanVariable();
}
E/com.service.androidbrain.util.networking.RetrofitCallback.onFailure: Failed to invoke public com.service.example.models.Species() with no args
For some reason however I'm getting this error and I don't understand what is going on, any idea?