我遵循安卓领域的入门指南。
我使用最新的android工作室版本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 :
我的错误是什么?有人有想法吗?感谢!
是的,这是因为文档被窃听,所以被称为4.0.0-RC1
.
它最终会得到修复。
编辑:事实上,4.0.0
现在也出来了,见 https://realm.io/docs/java/latest/