Ошибка Plugin [id: 'com.android.application', version: '7.4.2', apply: false] was not found in any of the following sources:
Создал проект, пытаюсь его развернуть получаю ошибку:
Build file '.../build.gradle' line: 3
Plugin [id: 'com.android.application', version: '7.4.2', apply: false] was not found in any of the following sources:
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
Вот сам gradle.build
:
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
}
третья строка это id 'com.android.application' version '7.4.2' apply false
. Подскажите, что это за ошибка и почему она возникает.
Файл settings.gradle
:
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
оказалось ошибка с proxy в android studio, но стал делать build gradle через системный терминал (там стоит ip Франфуркта) получил такую же ошибку. Сделал build gradle --scan получил
Could not resolve all files for configuration 'classpath'.
> Could not download gradle-enterprise-gradle-plugin-3.10.2.jar (com.gradle:gradle-enterprise-gradle-plugin:3.10.2)
> Could not get resource 'https://plugins.gradle.org/m2/com/gradle/gradle-enterprise-gradle-plugin/3.10.2/gradle-enterprise-gradle-plugin-3.10.2.jar'.
> Could not GET 'https://plugins.gradle.org/m2/com/gradle/gradle-enterprise-gradle-plugin/3.10.2/gradle-enterprise-gradle-plugin-3.10.2.jar'. Received status code 407 from server: Proxy Authentication Required
и теперь вопрос что значит Received status code 407 from server: Proxy Authentication Required
Источник: Stack Overflow на русском