내 응용 프로그램 용 영역을 사용하려고합니다. 내가 실행하면, 나는 오류 "기호 변수 영역을 찾을 수 없습니다"내 모델 클래스도오류 : 기호 변수 영역을 찾을 수 없습니다. 기호 변수 행을 찾을 수 없습니다.
public class Task extends RealmObject {
@PrimaryKey
private int taskId;
@Required
private String taskName;
private boolean completed;
private Date date;
//... auto-generated getters and setters
}
I를
error: cannot find symbol variable realm
error: cannot find symbol variable row
Task.java을 모든 필드에 대해 "기호 변수 행을 찾을 수 없습니다"라고 말하는 나는 여러 모델을 시도
error: TaskRealmProxy is not abstract and does not override abstract method realmGet$proxyState() in RealmObjectProxy
error: TaskColumnInfo is not abstract and does not override abstract method copyColumnInfoFrom(ColumnInfo) in ColumnInfo
가 그 RealmObject을 확장 분류하고, 오류는 모든 클래스와 같은 것 같다 : 모델 클래스에 대해 다음과 같은 두 가지 오류를 얻을.
여러 번 프로젝트를 정리하려고했지만 오류를 해결하지 못했습니다.
내 build.gradle (프로젝트), 나는 다음과 같은 종속성이에서:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath "io.realm:realm-gradle-plugin:3.2.0"
}
과 build.gradle (응용 프로그램)에서
, 나는 다음과 같은apply plugin: 'realm-android'
RealmRecyclerViewAdapter
당신이 난처를 사용하십니까이야? – Sergey다른 적용된 플러그인은 무엇입니까? 우연히 예를 들어'RealmBasedRecyclerViewAdapter'와 같이 오래된 Realm 버전을 가져 오는 라이브러리 프로젝트도 있습니까? – EpicPandaForce
@EpicPandaForce, realm recyclerview'compile 'com.github.thorbenprimke : realm-recycler-view : 0.9.5'' –