編輯Parceler - 無法找到產生Parcelable類
清潔後和重建,類不能產生
試圖使用Parcels.wrap()
Unable to find generated Parcelable class for xyz.xyz.models.reclamation.Reclamation, verify that your class is configured properly and that the Parcelable class xyz.xyz.models.reclamation.Reclamation$$Parcelable is generated by Parceler.
我得到這個錯誤但Reclamation$$Parcelable
類已創建,我可以看到它的內容。
這就是我的gradle產出:
compile 'org.parceler:parceler-api:1.1.6'
annotationProcessor 'org.parceler:parceler:1.1.6'
試圖改變annotationProcessor
到apt
原因建立自己的錯誤。
那開墾類
@Parcel
public class Reclamation {
public Reclamation() {
}
private int reclamationProductID;
private Integer preference;
private String takingDate1;
private String takingDate2;
private int takingAddressID;
private String takingAddressStreet;
private String takingAddressCity;
private String takingAddressZipCode;
private int type;
private String takingAddressCompany;
// + getters setters
}
那它崩潰
ServiceStepFour_.builder().arg(Constants.ARG_RECLAMATION, Parcels.wrap(reclamation)).build();
我用它在與Android註解組合的線。
有誰知道爲什麼會發生這種情況?
你的ProGuard在構建配置的任何機會呢? –