Problems running Realm: Could not find io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT

故事扮演 提交于 2019-12-05 22:31:18

Realm 0.88 has not been released to jCenter at the time of this writing (~9AM EST Feb 23 2016).

You can switch back to the latest build (0.87.4) by changing the contents of version.txt in the root directory. This, of course, will likely be missing some features so instead, as per the README you may want to add the OJO repository (and then you can use the 0.88-SNAPSHOT build):

If you want to test recent bugfixes or features that have not been packaged in an official release yet, you can use a -SNAPSHOT release of the current development version of Realm via Gradle, available on OJO

buildscript {
    repositories {
        maven {
            url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
        }
    }
    dependencies {
        classpath "io.realm:realm-gradle-plugin:<version>-SNAPSHOT"
    }
}

repositories {
    maven {
        url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
    }
}

Specifically, you must add:

maven {
    url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
}

to both the repositories nodes in the examples\build.gradle file (note I did this and successfully got the Realm-0.88-SNAPSHOT but then had a conflict with a support annotations library, so YMMV).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!