【问题标题】:Could not find io.realm:realm-gradle-plugin:4.0.0.pre.rc1找不到 io.realm:realm-gradle-plugin:4.0.0.pre.rc1
【发布时间】:2017-10-14 14:15:51
【问题描述】:

我遵循 android 领域的入门指南hear

我使用最新的 android studio 3.0 RC 1 和以下 build.gradle 文件:

buildscript {

 repositories {
    jcenter()
    google()
 }

 dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0-rc1'
    classpath "io.realm:realm-gradle-plugin:4.0.0.pre.rc1"
 }
} 

当我同步 gradle 时,我收到以下错误消息:

Error:Could not find io.realm:realm-gradle-plugin:4.0.0.pre.rc1.
Searched in the following locations:
    file:/D:/98_Downloads/android-studio-ide-171.4392136-windows/android-studio/gradle/m2repository/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.pom
    file:/D:/98_Downloads/android-studio-ide-171.4392136-windows/android-studio/gradle/m2repository/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.jar
    https://jcenter.bintray.com/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.pom
    https://jcenter.bintray.com/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.jar
    https://dl.google.com/dl/android/maven2/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.pom
    https://dl.google.com/dl/android/maven2/io/realm/realm-gradle-plugin/4.0.0.pre.rc1/realm-gradle-plugin-4.0.0.pre.rc1.jar
Required by:
    project :

我的错误是什么?有人有想法吗?谢谢!

【问题讨论】:

标签: java android gradle realm


【解决方案1】:

是的,因为文档被窃听,它被称为4.0.0-RC1

它最终会得到修复。


编辑:事实上,4.0.0 现在也已发布,请参阅 https://realm.io/docs/java/latest/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-24
    • 1970-01-01
    • 1970-01-01
    • 2021-07-20
    • 1970-01-01
    • 2020-09-16
    • 2018-07-17
    相关资源
    最近更新 更多