i need help troubleshooting issues with plugins, i am using gradle 8.12 - Stack Overflow
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.1 Answer
Reset to default 0The 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
}
}
- 软件主宰世界 如何统治电脑业、数字传媒等行业
- 谷歌正在复制苹果模式?(图)
- apache beam - Unable to Write processed Data to Parquet - Stack Overflow
- opengl - How to render a FBO into an ImGui window? - Stack Overflow
- reactjs - When i run the build command on my project, the dist files aren't being created in the correct format - Stack
- PowerShell not reading comment-based help section correctly - Stack Overflow
- google colaboratory - Load a Kaggle dataset into Colab notebook without extracting it - Stack Overflow
- reactjs - Scrollable Panels Not Working in React-Resizable-Panels - Stack Overflow
- c++ - Microbenchmark - backward iteration results in fewer cache misses - Stack Overflow
- javascript - AJAX implementation doesn't work properly for "like" button ASP.NET Core 2.1 - Stack Over
- c - Validity of `__attribute__((pure))` - Stack Overflow
- javascript - How to Upload an Image to Supabase Storage and Store the Public URL in a Form Using Zod and React Hook Form in Next
- tensorflow - How to resolved the import error with scipy when using keras_tuner? - Stack Overflow
- I can't receive messages through my webhook with Whatsapp Cloud API - Stack Overflow
- postgresql - AzureStorageClient raises the error Unable to determine account name for shared key credential - Stack Overflow
- window - Strawberry Perl doesn't include Win32::shortcut? - Stack Overflow
- tsconfig - Is there a typescript compiler option that prevents implicit widening from readonly properties to readwrite? - Stack