i need help troubleshooting issues with plugins, i am using gradle 8.12 - Stack Overflow

时间: 2025-01-06 admin 业界

The supplied phased action failed with an exception. A problem occurred configuring project ':app'. Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1 Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:
  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository

The error message i am encountering is stated above, i have tried updating the plugins based on the list provided by gradle compatibility matrix site. But its all to no avail

i ran the "gradlew build" command, i expected gradle to compile my project, get necessary plugins, creating a veritable apk. but the same error message appears during the build process.

C:\Users\Sage\AI>gradlew build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details Calculating task graph as no cached configuration is available for tasks: build

[Incubating] Problems report is available at: file:///C:/Users/Sage/AI/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1

  • What went wrong: Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository
  • 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. Get more help at .

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to .12/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 6m Configuration cache entry stored.

C:\Users\Sage\AI>gradlew build --warning-mode all Calculating task graph as no cached configuration is available for tasks: build

Configure project : The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: .12/userguide/upgrading_version_8.html#deprecated_access_to_conventions

[Incubating] Problems report is available at: file:///C:/Users/Sage/AI/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1

  • What went wrong: Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.ut. Run with --scan to get full insights. Get more help at .

BUILD FAILED in 26s Configuration cache entry stored.

The supplied phased action failed with an exception. A problem occurred configuring project ':app'. Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1 Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:
  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository

The error message i am encountering is stated above, i have tried updating the plugins based on the list provided by gradle compatibility matrix site. But its all to no avail

i ran the "gradlew build" command, i expected gradle to compile my project, get necessary plugins, creating a veritable apk. but the same error message appears during the build process.

C:\Users\Sage\AI>gradlew build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details Calculating task graph as no cached configuration is available for tasks: build

[Incubating] Problems report is available at: file:///C:/Users/Sage/AI/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1

  • What went wrong: Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository
  • 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. Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.12/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 6m Configuration cache entry stored.

C:\Users\Sage\AI>gradlew build --warning-mode all Calculating task graph as no cached configuration is available for tasks: build

Configure project : The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#deprecated_access_to_conventions

[Incubating] Problems report is available at: file:///C:/Users/Sage/AI/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Sage\AI\app\build.gradle.kts' line: 1

  • What went wrong: Plugin [id: 'com.android.application', version: '8.2.0'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.2.0') Searched in the following repositories: Gradle Central Plugin Repository
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.ut. Run with --scan to get full insights. Get more help at https://help.gradle.org.

BUILD FAILED in 26s Configuration cache entry stored.

Share Improve this question asked 15 hours ago True SageTrue Sage 111 bronze badge New contributor True Sage is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

The Android Gradle plugins are only available at Google's Maven repository.

This means you need to ensure that that repository is listed in the pluginManagement block of your settings.gradle file (your error message suggests that it is not):

// settings.gradle

pluginManagement {
    repositories {
        google()
        gradlePluginPortal() // For regular Gradle plugins
    }
}
最新文章