找不到io.realm:realm-gradle-plugin:4.0.0.pre.rc1

时间:2017-10-14 14:15:52

标签: java android gradle realm

我按照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 :

我的错误是什么?有人有个主意吗? THX!

1 个答案:

答案 0 :(得分:4)

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

最终会得到修复。

编辑:事实上,4.0.0现在已经出局,请参阅https://realm.io/docs/java/latest/