I got an error Gradle build failed. I'm using 2021.3.8f1 version
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':launcher'.
Could not resolve all artifacts for configuration ':launcher:classpath'.
Could not find com.android.tools.build:gradle:6.1.1.
Searched in the following locations:
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.
I'm trying to fix this error in android studio, But android studio shows add maven. So add it in build.gradle. But it doesn't work. I'm struggling to fix this please Someone help me fix this error.
I got an error Gradle build failed. I'm using 2021.3.8f1 version
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':launcher'.
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
I'm trying to fix this error in android studio, But android studio shows add maven. So add it in build.gradle. But it doesn't work. I'm struggling to fix this please Someone help me fix this error.