Kotlin not configured

Error:(30, 0) Gradle DSL method not found: ‘classpath()’
Possible causes:

  • The project ‘KotlinCalculator’ may be using a version of Gradle that does not contain the method.
    Open Gradle wrapper file
  • The build file may be missing a Gradle plugin.
    Apply Gradle plugin
  • this error comes out