我知道这里已经有多个线程,但没有一个修复工作,所以我想我必须有一个独特的问题或正在做一个愚蠢的错误,聪明的人可以指出。Gradle - 无法解决
我试图使用领域Recyclerview(这里找到:https://github.com/thorbenprimke/realm-recyclerview)
但是我不能让gradle这个同步超越未能解决com.github.thorbenprimke错误29,13:realmr-ecyclerview:0.9 0.12
我的应用程序的build.gradle文件看起来像这样:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.harris.school"
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile files('libs/joda-time-2.9.jar')
compile 'com.android.support:cardview-v7:23.1.1'
compile 'io.realm:realm-android:0.84.1'
compile 'com.github.thorbenprimke:realm-recyclerview:0.9.12'
}
,另一个看起来是这样的:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
谢谢!
里面的Android {}中的build.gradle文件
您可以发布您的完整stacktrace请。使用--stacktrace运行gradle命令 – RaGe
构建文件看起来很好。你试过从命令行运行'./gradlew clean assemble --refresh-dependencies'吗? –