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

标签 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."
   } ]
}

删除它们可以解决问题,但我想保留浓缩咖啡的依赖性。
 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支持存储库中解析出来,而不会到达jfrog存储库,无论如何它都会以409响应。

关于android - 无法解析com.android.support.test.espresso:espressgit so-core:3.0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47650212/

相关文章:

android - flutter :可通过卡和 margin 关闭

android - Android 中的应用程序与中间件开发

java - Android |二进制XML文件错误膨胀类|无法使用本 map 书馆的类(class)

android - 依赖关系解析为不兼容的版本

Android Listview 包含布局点击列表项

android - 手势检测器不工作

eclipse - 在 Eclipse 上通过 gradle 设置 Kotlin

testing - Espresso 测试 : How to open my application back after opening the recent apps?

AndroidX : No instrumentation registered! 必须在注册工具下运行

android - 如何旋转 Activity ,我的意思是 : screen orientation change using Espresso?