AdevintaSpain / AdevintaSpain/Barista
Failed to resolve: androidx.test:core:1.5.0
- Langage dominant
- Kotlin
- Étoiles
- 1.7k
- Forks
- 119
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, kotlin
- Domaine
- mobile, testing
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100