Error with gradle 7.0 installation


FAILURE: Build failed with an exception.

  • What went wrong:
    Executing Gradle tasks as part of an undefined build is not supported. Make sure that you are executing Gradle from a folder within your Gradle project. Your project should have a ‘settings.gradle(.kts)’ file in the root folder.

  • 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


Like the error says, it appears your project does not have a settings.gradle or settings.gradle.kts file. Add one to the root project.

Or do you have a different question?