摇篮 - 无法解析 [英] Gradle - Failed to resolve
问题描述
我知道有多个线程对这个已经,但不是一个单一的修复工作,所以我想我必须有一个独特的问题,或者使一个愚蠢的错误,有人聪明能指出。
I know there are multiple threads on this already but not a single fix worked so I figured I must have a unique issue or be making a stupid error that someone smart can point out.
我想使用的领域Recyclerview(这里找到: https://github.com/thorbenprimke/境界 - recyclerview )
I am trying to use the Realm Recyclerview (found here : https://github.com/thorbenprimke/realm-recyclerview)
不过,我不能得到同步的gradle超越未能解决com.github.thorbenprimke错误29,13:realmr-ecyclerview:0.9.12
However I cannot get the gradle sync to go beyond error 29,13 Failed to resolve com.github.thorbenprimke:realmr-ecyclerview:0.9.12
我的应用程序的build.gradle文件看起来像这样:
My app build.gradle file looks like this :
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'
}
和另一个看起来像这样:
and the other one looks like this:
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
}
谢谢!
推荐答案
我面临着同样的问题,并通过添加Maven仓库URL这样解决了。
I faced the same issue and resolved by adding maven repository URL like this
android{
repositories{
maven{
url 'http://repo1.maven.org/maven2'
}
}
}
希望这力量帮助你。
Hope this might helps you.
这篇关于摇篮 - 无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!