github-for-unity/Unity

See the console for more details unity

joshuajennysibbu opened this issue · 0 comments

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:

https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.1.1/gradle-
6.1.1.pom

  • 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.