Skip to content

Failed to resolve: androidx.test:core:1.5.0 #466

Description

@cdiazc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions