# Error with gradle 7.0 installation

**URL:** https://discuss.gradle.org/t/error-with-gradle-7-0-installation/40471
**Category:** Help/Discuss
**Created:** [July 12, 2021, 11:00pm UTC](https://discuss.gradle.org/t/error-with-gradle-7-0-installation/40471 "2021-07-12T23:00:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vasya](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@vasya](https://discuss.gradle.org/u/vasya)
#### Post date: [July 12, 2021, 11:00pm UTC](https://discuss.gradle.org/t/error-with-gradle-7-0-installation/40471/1 "2021-07-12T23:00:22Z")

</div>

C:\gradle-7.0\>gradle

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 [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 2s

---

<div class="post-metadata">

### Author: ![Chris\_Dore](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_dore/32/7592_2.png) [@Chris\_Dore](https://discuss.gradle.org/u/Chris_Dore)
#### Post date: [July 13, 2021, 6:45am UTC](https://discuss.gradle.org/t/error-with-gradle-7-0-installation/40471/2 "2021-07-13T06:45:57Z")

</div>

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?
