【发布时间】:2014-11-07 07:21:58
【问题描述】:
从昨天开始,我得到了 Failed to find: io.realm:realm-android:0.71.0.
它在我的依赖项中:
dependencies {
...
compile 'io.realm:realm-android:0.71.0'
...
}
这是一个错误吗?
项目之前编译完美。 从那以后发生了什么变化:
- 添加了 Crashlytics
- 构建工具版本异常:buildToolsVersion "21.1.0"
日志: FAILURE:构建失败并出现异常。
- 出了什么问题:
配置项目 ':app' 时出现问题。
无法解析配置“:app:_paidDebugCompile”的所有依赖项。 找不到 io.realm:realm-android:0.73.1。 在以下位置搜索: https://repo1.maven.org/maven2/io/realm/realm-android/0.73.1/realm-android-0.73.1.pom https://repo1.maven.org/maven2/io/realm/realm-android/0.73.1/realm-android-0.73.1.jar 文件:/C:/Users/thomasbeerten/.m2/repository/io/realm/realm-android/0.73.1/realm-android-0.73.1.pom 文件:/C:/Users/thomasbeerten/.m2/repository/io/realm/realm-android/0.73.1/realm-android-0.73.1.jar http://download.crashlytics.com/maven/io/realm/realm-android/0.73.1/realm-android-0.73.1.pom http://download.crashlytics.com/maven/io/realm/realm-android/0.73.1/realm-android-0.73.1.jar 文件:/C:/Users/thomasbeerten/sdk backup/sdk/extras/android/m2repository/io/realm/realm-android/0.73.1/realm-and android-0.73.1.pom 文件:/C:/Users/thomasbeerten/sdk backup/sdk/extras/android/m2repository/io/realm/realm-android/0.73.1/realm-and android-0.73.1.jar 文件:/C:/Users/thomasbeerten/sdk 备份/sdk/extras/google/m2repository/io/realm/realm-android/0.73.1/realm-andr oid-0.73.1.pom 文件:/C:/Users/thomasbeerten/sdk 备份/sdk/extras/google/m2repository/io/realm/realm-android/0.73.1/realm-andr oid-0.73.1.jar 要求: YoMommaOClock:app:unspecified
【问题讨论】:
-
看起来它仍然没有使用 jcenter 作为 maven 存储库。您可以看到它转到 mavenCentral 和您当地的 maven 存储库,但不是 jcenter。你能发布你的整个 build.gradle 吗?
-
另外请注意,buildscript 块内部(用于编译等)和外部(在运行时使用)的存储库定义之间存在差异
标签: android-studio realm