运行领域的问题:找不到io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT [英] Problems running Realm: Could not find io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT

查看:607
本文介绍了运行领域的问题:找不到io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Android Studio从Realm git存储库运行示例项目.

I am trying to run the example projects from the Realm git repository using Android Studio.

我发现当我打开任何示例项目时,都会出现以下错误:

I find that when I open any of the example projects I get the following error:

Error:Could not find io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/maven-metadata.xml
file:/Applications/Android Studio.app/Contents/gradle/m2repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.jar
file:/Users/username/.m2/repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/maven-metadata.xml
file:/Users/username/.m2/repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.pom
file:/Users/username/.m2/repository/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.jar
https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.pom
https://jcenter.bintray.com/io/realm/realm-gradle-plugin/0.88.0-SNAPSHOT/realm-gradle-plugin-0.88.0-SNAPSHOT.jar
Required by:
io.realm:adapterExample:0.88.0-SNAPSHOT

经过一番搜索,我发现其他人以前曾遇到过此问题,并将其作为git提出 issue ,但不知道如何实现答案:

After some searching I found that someone else has encountered this issue previously and raised it as a git issue but can't understand how to implement the answer:

有可能尚未部署我们的0.88.0-SNAPSHOT.你 可以通过运行./gradlew installRealmJava在本地自行安装 从根文件夹

There is a chance our 0.88.0-SNAPSHOT hasn't been deployed yet. You can install it yourself locally by running ./gradlew installRealmJava from the root folder

提出问题的原始用户无法确认这是否可以解决他/她的问题.

The original user who asked the question doesn't confirm if this fixes his/her problem.

我已经对该解决方案进行了进一步的研究,这使我越来越找不到解决方案,因为每个问题都需要与原始问题进一步偏离.

I have done further research on this solution which has lead me further and further from finding a solution as each problem requires further deviation from the original issue.

考虑到这张票已有一年多的历史,令我惊讶的是,更多的人还没有遇到我遇到的问题.

Considering this ticket is over a year old I am surprised that more people haven't come across the issue I have.

任何帮助或建议,我们将不胜感激.

Any help or advice would be very appreciated.

推荐答案

领域0.88 在撰写本文时尚未发布到jCenter (美国东部时间2016年2月23日上午9点).

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

您可以通过更改内容<根目录中version.txt的/a>.当然,这可能会缺少某些功能,因此,按照自述文件,您可能想添加 OJO 存储库(然后您可以使用0.88-SNAPSHOT构建):

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):

如果您想测试官方发行版中尚未打包的最新错误修正或功能,可以通过OJO使用Gradle使用Realm当前开发版本的-SNAPSHOT版本

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'
}

examples\build.gradle文件中的两个repositories节点(请注意,我这样做并成功获得了Realm-0.88-SNAPSHOT,但随后与支持注释库(即YMMV)发生冲突).

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).

这篇关于运行领域的问题:找不到io.realm:realm-gradle-plugin:0.88.0-SNAPSHOT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆