The flutter version used is 3.7.2, compile and run as follows
Could not get unknown property 'ndkVersion' for object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension
The solution is
to configure the following in flutter-3.7.2\packages\flutter_tools\gradle\flutter.gradle
pluginProject.android.ndkVersion ?: ndkVersionIfUnspecified is replaced by ndkVersionIfUnspecified,
that is, this judgment is removed