AdevintaSpain / AdevintaSpain/Barista

Failed to resolve: androidx.test:core:1.5.0

未关闭
#466 16 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Kotlin
星标
1.7k
派生
119
PR 合并指标
30 天内没有已合并 PR

描述

**Library Version:**

4.3.0

**Describe the Bug:**

Failed to resolve dependencies when trying to use Barista with test:*:1.5.0.

This is the message output:

```
Unresolved dependencies

Cannot find a version of 'androidx.test:core' that satisfies the version constraints:
Dependency path 'Flat:app:unspecified' --> 'androidx.test:core:1.5.0'
Constraint path 'Flat:app:unspecified' --> 'androidx.test:core:{strictly 1.4.0}' because of the following reason: productionDebugRuntimeClasspath uses version 1.4.0
Dependency path 'Flat:app:unspecified' --> 'androidx.test.ext:truth:1.5.0' (runtime) --> 'androidx.test:core:1.5.0'
Dependency path 'Flat:app:unspecified' --> 'androidx.test.ext:junit-ktx:1.1.4' (runtime) --> 'androidx.test.ext:junit:1.1.4' (runtime) --> 'androidx.test:core:1.5.0'
Dependency path 'Flat:app:unspecified' --> 'androidx.test.espresso:espresso-contrib:3.5.0' (runtime) --> 'androidx.test.espresso:espresso-core:3.5.0' (runtime) --> 'androidx.test:core:1.5.0'
Dependency path 'Flat:app:unspecified' --> 'com.adevinta.android:barista:4.3.0' (releaseRuntimePublication) --> 'androidx.test.espresso:espresso-intents:3.4.0' (runtime) --> 'androidx.test:core:1.4.0'
```

**Steps to reproduce the bug:**
Have a build.gradle file with:
```
testImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test:core:1.5.0'
testImplementation 'androidx.test:rules:1.5.0'
androidTestImplementation 'androidx.test:rules:1.5.0'
testImplementation 'androidx.test.ext:truth:1.5.0'
androidTestImplementation 'androidx.test.ext:truth:1.5.0'
```

**Expected Behavior:**

Work with v1.5.0 of androidx.test libraries.

贡献指南

打开贡献指南

调研方向

Start with the dependency declarations in the reported build.gradle example and inspect how Barista 4.3.0 brings in androidx.test.espresso:espresso-intents:3.4.0. Reproduce the dependency-resolution failure, then verify completion when the AndroidX Test 1.5.0 dependencies resolve without the strict 1.4.0 conflict and the tests run.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, kotlin
领域
mobile, testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。