private long id ; ですと うまくいったのですが
private byte[] id ; にすると
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
とエラーが出ます
解決方法教えてください
package com.example.username.myscheduler;
import java.util.Date;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
- Created by user.name on 2017/03/04.
*/
public class Schedule extends RealmObject{
@PrimaryKey
private byte[] id;
private Date date;
private String title;
private String detail;
public byte[] getId() { return id; } public void setId(byte[] id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDetail() { return detail; } public void setDetail(String detail) { this.detail = detail; }
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。