昨天一切顺利。今天早上我更新了recyclerView
和android studio
的支持存储库让我更新了模拟器的内容,现在每当我尝试在模拟器中启动应用程序或重建我的应用程序时,它都会抛出这些错误,同时其他人喜欢他们:
Error:(27, 8) error: FiringScheduleRealmProxy is not abstract and does not override abstract method realmGet$proxyState() in RealmObjectProxy
Error:(62, 29) error: cannot find symbol variable realm
Error:(63, 55) error: cannot find symbol variable row
Error:(23, 1) error: DefaultRealmModuleMediator is not abstract and does not override abstract method <E>createDetachedCopy(E,int,Map<RealmModel,CacheData<RealmModel>>) in RealmProxyMediator
where E is a type-variable:
E extends RealmModel declared in method <E>createDetachedCopy(E,int,Map<RealmModel,CacheData<RealmModel>>)
Error:(99, 46) error: getModelClasses() in DefaultRealmModuleMediator cannot override getModelClasses() in RealmProxyMediator
return type Set<Class<? extends RealmObject>> is not compatible with Set<Class<? extends RealmModel>>
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
这是app build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "fautt.kilncontroller"
minSdkVersion 22
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/fonts'] } }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'
compile 'io.realm:android-adapters:1.3.0'
}
和项目build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "io.realm:realm-gradle-plugin:0.88.2"
}
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}