Android studio 为什么Gradle忽略了我的一些依赖关系?

Android studio 为什么Gradle忽略了我的一些依赖关系?,android-studio,gradle,dependencies,Android Studio,Gradle,Dependencies,我有一个项目,它使用了maven存储库中的一些依赖项,该存储库在项目的build.gradle中声明: repositories { jcenter() mavenLocal() mavenCentral() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { compile file

我有一个项目,它使用了maven存储库中的一些依赖项,该存储库在项目的build.gradle中声明:

  repositories {
        jcenter()
        mavenLocal()
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    }
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'org.mapsforge:vtm:master-SNAPSHOT'
    compile 'org.mapsforge:vtm-android:master-SNAPSHOT@aar'
    .
    . 5 or 6 more
    .
}
存储库是最后一行,sonatype.org

我的应用程序的build.gradle

  repositories {
        jcenter()
        mavenLocal()
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    }
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'org.mapsforge:vtm:master-SNAPSHOT'
    compile 'org.mapsforge:vtm-android:master-SNAPSHOT@aar'
    .
    . 5 or 6 more
    .
}
我已检查它们是否存在于远程存储库中。

我的问题是:有时候(特别是今天),Gradle不下载这些依赖项中的一些。它会无声地失败(gradle控制台上没有错误),但是如果我扩展项目的“外部库”,我会发现其中一些库丢失了

我已经清理了项目,重新同步了gradle等等。。。但他们仍然失踪。这在过去已经发生在我身上,我记得同步几次可以解决这个问题。但是今天我运气不好

显然,找不到缺少的库中的类和符号


会发生什么事?

嗯。。。在重新启动Android Studio时,损失了3个小时修复了该问题。唉。

嗯。。。在重新启动Android Studio时,损失了3个小时修复了该问题。叹息。

不要为您的家属使用动态版本我知道。。。但不幸的是,我不得不使用主快照,因为包含的依赖关系处于早期阶段,我也为该项目做出了贡献。你认为这就是问题所在吗?不要为你的从属关系使用动态版本我知道。。。但不幸的是,我不得不使用主快照,因为包含的依赖关系处于早期阶段,我也为该项目做出了贡献。你认为这就是问题所在吗?