I’ve got this error in my Flutter app. How can I resolve this error?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.android.material:material:<version>.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/material/material/<version>/material-<version>.pom
- https://repo.maven.apache.org/maven2/com/google/android/material/material/<version>/material-<version>.pom
- https://storage.googleapis.com/download.flutter.io/com/google/android/material/material/<version>/material-<version>.pom
Required by:
project :app
* 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
BUILD FAILED in 11s
Error: Gradle task assembleDebug failed with exit code 1