2016-08-04 82 views
0

我已經下載的境界例如項目從Github境界搖籃「的例子」項目刷新失敗

我進口的項目。

最後我得到這個錯誤之下。

境界搖籃 '的例子' 項目刷新失敗

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

我該如何解決這個問題?

回答

1

如果克隆我們整個回購,你需要先運行從頂層目錄./gradlew assemble。很可能它更強調在我們的README

0

請確保您有快照庫在你的build.gradle

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

謝謝您的回答,我會檢查,並讓你知道@EpicPandaForce – MathaN