Flutterde Build APK dediğim zaman sürekli bu hatayı alıyorum

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method classpath() for arguments [com.android.tools.build:gradle:7.4.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies .DefaultDependencyHandler.

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

Sizce ne yapmam lazım