FAILURE: Build failed with an exception. * Where:...
# community-support
n
FAILURE: Build failed with an exception. * Where: Settings file 'C:\Users\noush\Desktop\flutter\new_app\android\settings.gradle.kts' line: 19 * What went wrong: Error resolving plugin [id: 'dev.flutter.flutter-plugin-loader', version: '1.0.0']
A problem occurred configuring project ':gradle'.
> Could not resolve all artifacts for configuration 'Gclasspath'. > Could not find com.android.tools.buildG8.2.1. Searched in the following locations: - https://plugins.gradle.org/m2/com/android/tools/build/gradle/8.2.1/gradle-8.2.1.pom Required by: project :gradle * Try:
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
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.
BUILD FAILED in 13s Error: Gradle task assembleDebug failed with exit code 1
v
Is there a question hidden somewhere? 🙂
n
why i am getting this error
v
Well, just what the error says. You try to use "Android Gradle Plugin" from Gradle Plugin Portal, but it is not found there.
Because Google only publishes it in their own Maven repository which you can use with the
google()
helper in the plugin repositories