Как разрешить ошибку "не может разрешить Androidx.test: Runner: 1.6.2"Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Как разрешить ошибку "не может разрешить Androidx.test: Runner: 1.6.2"

Сообщение Anonymous »

Когда я выполняю эту команду в терминале: < /p>

Код: Выделить всё

./gradlew clean and build --scan
< /code>
Сбоя сбоя с этой ошибкой: < /p>
> Could not resolve all artifacts for configuration
> ':app:debugAndroidTestRuntimeClasspath'.
> > Could not resolve androidx.test:runner:1.6.2.   Required by:
>       project :app
>   > Cannot find a version of 'androidx.test:runner' that satisfies the version constraints:
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:1.6.2'
>        Constraint path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:{strictly 1.6.1}' because of the following
> reason: version resolved in configuration ':app:debugRuntimeClasspath'
> by consistent resolution
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.compose.ui:ui-test-junit4:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test-junit4-android:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test:1.7.8' (releaseRuntimeElements-published)
> --> 'androidx.compose.ui:ui-test-android:1.7.8' (releaseRuntimeElements-published) -->
> 'androidx.test.espresso:espresso-core:3.6.1' (runtime) -->
> 'androidx.test:runner:1.6.1'
> > Could not resolve androidx.test:runner:{strictly 1.6.1}.   Required by:
>       project :app
>   > Cannot find a version of 'androidx.test:runner' that satisfies the version constraints:
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:1.6.2'
>        Constraint path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:{strictly 1.6.1}' because of the following
> reason: version resolved in configuration ':app:debugRuntimeClasspath'
> by consistent resolution
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.compose.ui:ui-test-junit4:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test-junit4-android:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test:1.7.8' (releaseRuntimeElements-published)
> --> 'androidx.compose.ui:ui-test-android:1.7.8' (releaseRuntimeElements-published) -->
> 'androidx.test.espresso:espresso-core:3.6.1' (runtime) -->
> 'androidx.test:runner:1.6.1'
> > Could not resolve androidx.test:runner:1.6.1.   Required by:
>       project :app > androidx.test.espresso:espresso-core:3.6.1
>   > Cannot find a version of 'androidx.test:runner' that satisfies the version constraints:
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:1.6.2'
>        Constraint path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.test:runner:{strictly 1.6.1}' because of the following
> reason: version resolved in configuration ':app:debugRuntimeClasspath'
> by consistent resolution
>        Dependency path 'LiturgiaPlusAndroid:app:unspecified' --> 'androidx.compose.ui:ui-test-junit4:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test-junit4-android:1.7.8'
> (releaseRuntimeElements-published) -->
> 'androidx.compose.ui:ui-test:1.7.8' (releaseRuntimeElements-published)
> --> 'androidx.compose.ui:ui-test-android:1.7.8' (releaseRuntimeElements-published) -->
> 'androidx.test.espresso:espresso-core:3.6.1' (runtime) -->
> 'androidx.test:runner:1.6.1'
< /code>
Я не знаю, что вызывает эту ошибку. 1 
Если в app/build.gradle я реализую:

Код: Выделить всё

androidTestImplementation 'androidx.test:runner:1.6.2'
Я подтвердил, что все версии зависимости актуальны и что между ними зависимостей нет различий.

Подробнее здесь: https://stackoverflow.com/questions/794 ... unner1-6-2
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»