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

时间:2017-12-05 09:33:32

标签: android gradle android-espresso

几小时前,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."
   } ]
}

删除它们解决了这个问题,但我想保留espresso依赖。

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

1 个答案:

答案 0 :(得分:1)

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

仔细查看依赖关系,它说espressgit so-core但应该是espresso-core,然后它会从android支持存储库解析而不会到达jfrog存储库,它会以409响应。