android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.4k stars 8.29k forks source link

[GithubBrowserSample] Could not resolve androidx.test:core:1.3.0 while running instrumentation tests #1000

Closed Artenes closed 3 years ago

Artenes commented 3 years ago

Sample

Github Browser Sample

Problem

Could not determine the dependencies of task ':app:processDebugAndroidTestManifest'.

Could not resolve all task dependencies for configuration ':app:debugAndroidTestRuntimeClasspath'. Could not resolve androidx.test:core:1.3.0. Required by: project :app project :app > androidx.test.ext:junit:1.1.2 Cannot find a version of 'androidx.test:core' that satisfies the version constraints: Dependency path 'GithubBrowserSample:app:unspecified' --> 'androidx.test:core:1.3.0' Constraint path 'GithubBrowserSample:app:unspecified' --> 'androidx.test:core:{strictly 1.2.0}' because of the following reason: debugRuntimeClasspath uses version 1.2.0 Dependency path 'GithubBrowserSample:app:unspecified' --> 'androidx.test.ext:junit:1.1.2' --> 'androidx.test:core:1.3.0' Dependency path 'GithubBrowserSample:app:unspecified' --> 'androidx.fragment:fragment-testing:1.2.0' --> 'androidx.test:core:1.2.0'

Solution

Explanation

This Stackoverflow answer explains more what is the problem and solution

Artenes commented 3 years ago

Just leaving here for future reference.