我找不到解决问题的方法。任何人都可以查看我的代码并告诉我应该改变什么。将编译更改为implementatino不起作用。我已经尝试清除,重建和无效。我也试图将版本的版本更改为最大版本,但后来我将erron连接到app。
应用/ build.grade
plugins {
id "me.tatarka.retrolambda" version "3.2.0"
}
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "eu.storware.kodo"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}
configurations {
all*.exclude group: 'javax.inject'
}
dependencies {
compile files('libs/commons-io-2.4.jar')
compile files('libs/jsr305-1.3.9.jar')
compile files('libs/logback-android-1.1.1-2.jar')
compile files('libs/slf4j-api-1.7.6.jar')
compile files('libs/edm.jar')
compile files('libs/knox.jar')
compile files('libs/license.jar')
compile files('libs/rc.jar')
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services-gcm:7.5.0'
provided 'org.roboguice:roboblender:3.0.1'
compile 'org.roboguice:roboguice:3.0.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.flipboard:bottomsheet-core:1.5.0'
compile 'com.flipboard:bottomsheet-commons:1.5.0' // optional
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'com.makeramen:roundedimageview:2.2.1'
compile 'info.guardianproject.iocipher:IOCipherStandalone:0.3'
compile 'com.android.support:design:23.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.0.1'
compile 'com.jakewharton:butterknife:8.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
compile 'com.mobilesolutionworks:works-util:1.0.4'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
testCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
androidTestCompile 'com.android.support:support-annotations:23.4.0'
testCompile 'org.mockito:mockito-core:1.10.8'
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile 'org.json:json:20090211'
}
build.grade
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "io.realm:realm-gradle-plugin:1.2.0"
}
}
allprojects {
repositories {
jcenter()
google()
}
}
答案 0 :(得分:0)
遇到同样的问题。 通过更新到最新的realm-gradle-plugin
解决了这个问题classpath "io.realm:realm-gradle-plugin:4.3.3"
希望这有帮助。