无法解析 com.android.support.test.espresso:espressgit so-core:3.0.1

Could not resolve com.android.support.test.espresso:espressgit so-core:3.0.1

几个小时前 gradle 同步工作正常,但是刚才,测试依赖项下载失败

无法获取“http://oss.jfrog.org/artifactory/oss-snapshot-local/com/android/support/test/espresso/espressgit%20so-core/3.0.1/espressgit%20so-core-3.0.1.pom”。从服务器收到状态代码 409:冲突

{
   errors: [
   {
   status: 409,
   message: "The repository 'oss-snapshot-local' rejected the resolution of an artifact 'oss-snapshot-local:com/android/support/test/espresso/espressgit so-core/3.0.1/espressgit so-core-3.0.1.pom' due to conflict in the snapshot release handling policy."
   } ]
}

删除它们解决了问题,但我想保留对浓缩咖啡的依赖。

 androidTestImplementation 'com.android.support.test.espresso:espressgit so-core:3.0.1', {
        exclude group: 'com.android.support', module: 'support-annotations'
    }
    androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.1', {
        exclude group: 'com.android.support', module: 'support-annotations'
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.android.support', module: 'design'
        exclude group: 'com.android.support', module: 'recyclerview-v7'
    }

我认为您在构建脚本中输入了 git ssgit,而您认为焦点在您的终端中。

仔细查看依赖项,它说 espressgit so-core 但可能应该是 espresso-core 然后从 android 支持存储库解析并且不会到达以 409 响应的 jfrog 存储库为什么。